File tree Expand file tree Collapse file tree 2 files changed +39
-23
lines changed Expand file tree Collapse file tree 2 files changed +39
-23
lines changed Original file line number Diff line number Diff line change 1- sudo : false
1+ dist : xenial
2+ os : linux
3+
4+ language : php
25
36git :
4- depth : 1
7+ depth : 10
58
69cache :
710 directories :
811 - $HOME/.composer
912
10- language : php
11-
12- php :
13- - 5.6
14- - 7.0
15- - 7.1
16- - 7.2
17- - 7.3
18- - 7.4
19- - nightly
20-
2113env :
2214 global :
23- - DEFAULT_COMPOSER_FLAGS="--no-interaction --no-progress"
15+ - DEFAULT_COMPOSER_FLAGS="--optimize-autoloader -- no-interaction --no-progress"
2416 - COMPOSER_FLAGS=""
2517
2618stages :
19+ - Fast Test
2720 - Static code analysis
2821 - Test
2922
@@ -32,14 +25,7 @@ before_install:
3225 - phpenv config-rm xdebug.ini || return 0
3326
3427 # Composer: boost installation
35- - composer global show -ND 2>&1 | grep "hirak/prestissimo" || travis_retry composer global require $DEFAULT_COMPOSER_FLAGS hirak/prestissimo
36-
37- install :
38- - travis_retry composer update $DEFAULT_COMPOSER_FLAGS $COMPOSER_FLAGS
39- - composer info -D | sort
40-
41- script :
42- - vendor/bin/phpunit
28+ - composer global show hirak/prestissimo -q || travis_retry composer global require $DEFAULT_COMPOSER_FLAGS hirak/prestissimo
4329
4430jobs :
4531 include :
5541 - composer normalize -d ./dev-tools ./../composer.json --dry-run || travis_terminate 1
5642 - dev-tools/vendor/bin/phpmd src,tests text ./dev-tools/phpmd.xml || travis_terminate 1
5743 - dev-tools/vendor/bin/php-cs-fixer fix --diff --dry-run -v || travis_terminate 1
44+
45+ - &STANDARD_TEST_JOB
46+ stage : Test
47+ php : 7.0
48+ install :
49+ - travis_retry composer update $DEFAULT_COMPOSER_FLAGS $COMPOSER_FLAGS
50+ - composer info -D | sort
51+ script :
52+ - vendor/bin/phpunit
53+ -
54+ << : *STANDARD_TEST_JOB
55+ php : 5.6
56+ env : COMPOSER_FLAGS="--prefer-stable --prefer-lowest"
57+ -
58+ << : *STANDARD_TEST_JOB
59+ php : 7.1
60+ -
61+ << : *STANDARD_TEST_JOB
62+ php : 7.2
63+ -
64+ << : *STANDARD_TEST_JOB
65+ php : 7.3
66+ -
67+ << : *STANDARD_TEST_JOB
68+ stage : Fast Test
69+ php : 7.4
70+ -
71+ << : *STANDARD_TEST_JOB
72+ php : nightly
Original file line number Diff line number Diff line change 1616 "php" : " ^5.5 || ^7.0 || ^8.0" ,
1717 "ext-dom" : " *" ,
1818 "ext-libxml" : " *" ,
19- "phpunit/phpunit" : " ^5.7.23 || ^6.4.3 || ^7.0 || ^8.0 || ^9.0"
19+ "phpunit/phpunit" : " ^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.0 || ^9.0" ,
20+ "phpunitgoodpractices/polyfill" : " ^1.4"
2021 },
2122 "require-dev" : {
2223 "johnkary/phpunit-speedtrap" : " ^1.1 || ^2.0 || ^3.0" ,
You can’t perform that action at this time.
0 commit comments