Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 37 additions & 22 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,22 @@
sudo: false
dist: xenial
os: linux

language: php

git:
depth: 1
depth: 10

cache:
directories:
- $HOME/.composer

language: php

php:
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4
- nightly

env:
global:
- DEFAULT_COMPOSER_FLAGS="--no-interaction --no-progress"
- DEFAULT_COMPOSER_FLAGS="--optimize-autoloader --no-interaction --no-progress"
- COMPOSER_FLAGS=""

stages:
- Fast Test
- Static code analysis
- Test

Expand All @@ -32,14 +25,7 @@ before_install:
- phpenv config-rm xdebug.ini || return 0

# Composer: boost installation
- composer global show -ND 2>&1 | grep "hirak/prestissimo" || travis_retry composer global require $DEFAULT_COMPOSER_FLAGS hirak/prestissimo

install:
- travis_retry composer update $DEFAULT_COMPOSER_FLAGS $COMPOSER_FLAGS
- composer info -D | sort

script:
- vendor/bin/phpunit
- composer global show hirak/prestissimo -q || travis_retry composer global require $DEFAULT_COMPOSER_FLAGS hirak/prestissimo

jobs:
include:
Expand All @@ -55,3 +41,32 @@ jobs:
- composer normalize -d ./dev-tools ./../composer.json --dry-run || travis_terminate 1
- dev-tools/vendor/bin/phpmd src,tests text ./dev-tools/phpmd.xml || travis_terminate 1
- dev-tools/vendor/bin/php-cs-fixer fix --diff --dry-run -v || travis_terminate 1

- &STANDARD_TEST_JOB
stage: Test
php: 7.0
install:
- travis_retry composer update $DEFAULT_COMPOSER_FLAGS $COMPOSER_FLAGS
- composer info -D | sort
script:
- vendor/bin/phpunit
-
<<: *STANDARD_TEST_JOB
php: 5.6
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest"
-
<<: *STANDARD_TEST_JOB
php: 7.1
-
<<: *STANDARD_TEST_JOB
php: 7.2
-
<<: *STANDARD_TEST_JOB
php: 7.3
-
<<: *STANDARD_TEST_JOB
stage: Fast Test
php: 7.4
-
<<: *STANDARD_TEST_JOB
php: nightly
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"php": "^5.5 || ^7.0 || ^8.0",
"ext-dom": "*",
"ext-libxml": "*",
"phpunit/phpunit": "^5.7.23 || ^6.4.3 || ^7.0 || ^8.0 || ^9.0"
"phpunit/phpunit": "^5.7.27 || ^6.5.14 || ^7.0 || ^8.0 || ^9.0",
"phpunitgoodpractices/polyfill": "^1.4"
},
"conflict": {
"hhvm": "*"
Expand Down