1
1
language : php
2
-
3
2
sudo : false
4
-
5
3
cache :
6
4
directories :
7
5
- $HOME/.composer/cache/files
8
6
- $HOME/symfony-bridge/.phpunit
9
7
10
8
env :
11
9
global :
12
- - TEST_COMMAND="composer test"
13
- - SYMFONY_PHPUNIT_VERSION="6.3"
10
+ - PHPUNIT_FLAGS="-v"
14
11
- SYMFONY_PHPUNIT_DIR="$HOME/symfony-bridge/.phpunit"
15
12
16
13
branches :
@@ -21,48 +18,49 @@ matrix:
21
18
fast_finish : true
22
19
include :
23
20
# Minimum supported Symfony version and latest PHP version
24
- - php : 7.1
25
- env : DEPENDENCIES="minimum" COVERAGE=true TEST_COMMAND="composer test-ci " SYMFONY_DEPRECATIONS_HELPER="weak" SYMFONY_PHPUNIT_VERSION="5.7 "
21
+ - php : 7.2
22
+ env : COMPOSER_FLAGS="--prefer-stable --prefer-lowest " SYMFONY_DEPRECATIONS_HELPER="weak"
26
23
27
24
# Test the latest stable release
25
+ - php : 5.5
28
26
- php : 5.6
29
- env : SYMFONY_PHPUNIT_VERSION="5.7"
30
27
- php : 7.0
31
28
- php : 7.1
32
29
- php : 7.2
30
+ env : COVERAGE=true PHPUNIT_FLAGS="-v --coverage-text --coverage-clover=build/coverage.xml"
33
31
34
- # Test LTS versions
35
- - php : 5.5
32
+ # Test LTS versions. This makes sure we do not use Symfony packages with version greater
33
+ # than 2 or 3 respectively. Read more at https://github.com/symfony/lts
34
+ - php : 7.2
36
35
env : DEPENDENCIES="dunglas/symfony-lock:^2"
37
- - php : 5.5
36
+ - php : 7.2
38
37
env : DEPENDENCIES="dunglas/symfony-lock:^3"
39
- - php : 7.1
40
- env : DEPENDENCIES="dunglas/symfony-lock:^4"
38
+ - php : 7.2
39
+ env : DEPENDENCIES="dunglas/symfony-lock:^4" STABILITY="rc"
41
40
42
41
# Latest commit to master
43
- - php : 7.1
44
- env : DEPENDENCIES ="dev"
42
+ - php : 7.2
43
+ env : STABILITY ="dev"
45
44
46
45
allow_failures :
47
46
# dev-master is allowed to fail.
48
- - php : 7.1
49
- env : DEPENDENCIES ="dev"
47
+ - php : 7.2
48
+ env : STABILITY ="dev"
50
49
51
50
before_install :
52
51
- if [[ $COVERAGE != true ]]; then phpenv config-rm xdebug.ini || true; fi
53
- - if [ "$DEPENDENCIES" = "minimum" ]; then COMPOSER_FLAGS="--prefer-stable --prefer-lowest"; fi;
54
- - if [ "$DEPENDENCIES" = "dev" ]; then composer config minimum-stability dev; fi;
55
- - if [[ $DEPENDENCIES == *"/"* ]]; then composer require --no-update $DEPENDENCIES; fi;
52
+ - if ! [ -z "$STABILITY" ]; then composer config minimum-stability ${STABILITY}; fi;
53
+ - if ! [ -v "$DEPENDENCIES" ]; then composer require --no-update ${DEPENDENCIES}; fi;
56
54
57
55
install :
58
56
# To be removed when this issue will be resolved: https://github.com/composer/composer/issues/5355
59
57
- if [[ "$COMPOSER_FLAGS" == *"--prefer-lowest"* ]]; then composer update --prefer-dist --no-interaction --prefer-stable --quiet; fi
60
58
- composer update ${COMPOSER_FLAGS} --prefer-dist --no-interaction
61
- - vendor/bin/simple-phpunit install
59
+ - ./ vendor/bin/simple-phpunit install
62
60
63
61
script :
64
62
- composer validate --strict --no-check-lock
65
- - $TEST_COMMAND
63
+ - ./vendor/bin/simple-phpunit $PHPUNIT_FLAGS
66
64
67
65
after_success :
68
66
- if [[ $COVERAGE = true ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
0 commit comments