@@ -3,63 +3,32 @@ sudo: false
3
3
cache :
4
4
directories :
5
5
- $HOME/.composer/cache/files
6
- - $HOME/symfony-bridge/.phpunit
7
6
8
7
env :
9
8
global :
10
- - PHPUNIT_FLAGS="-v"
11
- - SYMFONY_PHPUNIT_DIR="$HOME/symfony-bridge/.phpunit"
9
+ - CC_TEST_REPORTER_ID=303a289e61e8e11d8bcae115860c4fffc6e1e7fe2d504d20a773e69bd7641284
12
10
13
11
matrix :
14
12
fast_finish : true
15
13
include :
16
- # Minimum supported Symfony version with the latest PHP version
17
- - php : 7.2
18
- env : COMPOSER_FLAGS="--prefer-stable --prefer-lowest" SYMFONY_DEPRECATIONS_HELPER="weak"
19
-
20
- # Test the latest stable release
21
- - php : 5.5
14
+ # - php: 5.5 is over EOL. phpunit does not support it anymore so we just ignore this version
22
15
- php : 5.6
23
16
- php : 7.0
24
17
- php : 7.1
25
18
- php : 7.2
26
- env : COVERAGE=true PHPUNIT_FLAGS="-v --coverage-text"
27
-
28
- # Test LTS versions. This makes sure we do not use Symfony packages with version greater
29
- # than 2 or 3 respectively. Read more at https://github.com/symfony/lts
30
- - php : 7.2
31
- env : DEPENDENCIES="dunglas/symfony-lock:^2"
32
- - php : 7.2
33
- env : DEPENDENCIES="dunglas/symfony-lock:^3"
34
- - php : 7.2
35
- env : DEPENDENCIES="dunglas/symfony-lock:^4"
36
-
37
- # Latest commit to master
38
- - php : 7.2
39
- env : STABILITY="dev"
40
-
41
- allow_failures :
42
- # Dev-master is allowed to fail.
43
- - env : STABILITY="dev"
44
19
45
20
before_install :
46
- - if [[ $COVERAGE != true ]]; then phpenv config-rm xdebug.ini || true; fi
47
- - if ! [ -z "$STABILITY" ]; then composer config minimum-stability ${STABILITY}; fi;
48
- - if ! [ -v "$DEPENDENCIES" ]; then composer require --no-update ${DEPENDENCIES}; fi;
21
+ # setup code climate reporter https://docs.codeclimate.com/docs/configuring-test-coverage
22
+ - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
23
+ - chmod +x ./cc-test-reporter
24
+ - ./cc-test-reporter before-build
49
25
50
26
install :
51
- # To be removed when this issue will be resolved: https://github.com/composer/composer/issues/5355
52
- - if [[ "$COMPOSER_FLAGS" == *"--prefer-lowest"* ]]; then composer update --prefer-dist --no-interaction --prefer-stable --quiet; fi
53
- - composer update ${COMPOSER_FLAGS} --prefer-dist --no-interaction
54
- - ./vendor/bin/simple-phpunit install
27
+ - composer update --prefer-dist --no-interaction
55
28
56
29
script :
57
30
- composer validate --strict --no-check-lock
58
- - ./vendor/bin/simple-phpunit $PHPUNIT_FLAGS
59
-
60
- addons :
61
- code_climate :
62
- repo_token : 303a289e61e8e11d8bcae115860c4fffc6e1e7fe2d504d20a773e69bd7641284
31
+ - composer test-ci
63
32
64
33
after_script :
65
- - vendor/bin/ test-reporter
34
+ - ./cc- test-reporter after-build -t clover --exit-code $TRAVIS_TEST_RESULT
0 commit comments