6
6
directories :
7
7
- $HOME/.composer/cache/files
8
8
9
- php :
10
- - 5.5
11
- - 5.6
12
- - 7.0
13
- - 7.1
14
- - 7.2
15
-
16
9
env :
17
10
global :
18
- - TEST_COMMAND="composer test "
11
+ - TEST_COMMAND="./vendor/bin/simple-phpunit "
19
12
20
13
branches :
21
14
except :
@@ -24,26 +17,45 @@ branches:
24
17
matrix :
25
18
fast_finish : true
26
19
include :
20
+ # Minimum supported PHP and Symfony version
21
+ - php : 7.1
22
+ env : DEPENDENCIES="minimum" COVERAGE=true TEST_COMMAND="composer test-ci" SYMFONY_DEPRECATIONS_HELPER="weak"
23
+
24
+ # Test the latest stable release
27
25
- php : 5.5
28
- env : COMPOSER_FLAGS="--prefer-stable --prefer-lowest" COVERAGE=true TEST_COMMAND="composer test-ci"
29
- - php : 7.2
30
- env : DEPENDENCIES=dev
31
- - php : hhvm
32
- dist : trusty
33
- # Test against LTS versions
26
+ - php : 5.6
34
27
- php : 7.0
35
- env : SYMFONY_VERSION=2.8.*
28
+ - php : 7.1
29
+
30
+ # Test LTS versions
31
+ - php : 5.5
32
+ env : DEPENDENCIES="symfony/lts:v2"
33
+ - php : 5.5
34
+ env : DEPENDENCIES="symfony/lts:v3"
35
+
36
+ # Latest commit to master
37
+ - php : 7.1
38
+ env : DEPENDENCIES="dev"
39
+
40
+ allow_failures :
41
+ # Latest beta is allowed to fail.
42
+ - php : 7.1
43
+ env : DEPENDENCIES="dev"
36
44
37
45
before_install :
38
- - if [ "$SYMFONY_VERSION" != "" ]; then composer require "symfony/symfony:${SYMFONY_VERSION}" --no-update; fi;
39
- - if [ "$DEPENDENCIES" = "dev" ]; then sed -i '/prefer-stable/d' composer.json; fi;
40
- - if [ "$DEPENDENCIES" = "dev" ]; then perl -pi -e 's/^}$/,"minimum-stability":"dev"}/' composer.json; fi;
41
- - if [ $COVERAGE != true ]; then phpenv config-rm xdebug.ini; fi;
46
+ - composer require --no-update "symfony/phpunit-bridge:^3.3 || ^4"
47
+ - if [[ $COVERAGE != true ]]; then phpenv config-rm xdebug.ini || true; fi
48
+ - if [ "$DEPENDENCIES" = "minimum" ]; then COMPOSER_FLAGS="--prefer-stable --prefer-lowest"; fi;
49
+ - if [ "$DEPENDENCIES" = "dev" ]; then composer config minimum-stability dev; fi;
50
+ - if [[ $DEPENDENCIES == *"/"* ]]; then composer require --no-update $DEPENDENCIES; fi;
42
51
43
52
install :
44
- - travis_retry composer update ${COMPOSER_FLAGS} --prefer-dist --no-interaction
53
+ # To be removed when this issue will be resolved: https://github.com/composer/composer/issues/5355
54
+ - if [[ "$COMPOSER_FLAGS" == *"--prefer-lowest"* ]]; then composer update --prefer-dist --no-interaction --prefer-stable --quiet; fi
55
+ - composer update ${COMPOSER_FLAGS} --prefer-dist --no-interaction
45
56
46
57
script :
58
+ - composer validate --strict --no-check-lock
47
59
- $TEST_COMMAND
48
60
49
61
after_success :
0 commit comments