Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit 51d03ed

Browse files
michalbundyraweierophinney
authored andcommitted
Updated Travis CI configuration
- moved cs-check and test coverage to run on PHP 7.1 with locked deps - updated scripts - reordered sections to match maintainers template
1 parent c56b557 commit 51d03ed

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.travis.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,13 @@ matrix:
2323
- php: 5.6
2424
env:
2525
- DEPS=latest
26-
- TEST_COVERAGE=true
2726
- php: 7
2827
env:
2928
- DEPS=lowest
3029
- php: 7
3130
env:
3231
- DEPS=locked
33-
- CHECK_CS=true
32+
- LEGACY_DEPS="phpunit/phpunit"
3433
- php: 7
3534
env:
3635
- DEPS=latest
@@ -40,6 +39,8 @@ matrix:
4039
- php: 7.1
4140
env:
4241
- DEPS=locked
42+
- CS_CHECK=true
43+
- TEST_COVERAGE=true
4344
- php: 7.1
4445
env:
4546
- DEPS=latest
@@ -53,11 +54,8 @@ matrix:
5354
env:
5455
- DEPS=latest
5556

56-
notifications:
57-
email: false
58-
5957
before_install:
60-
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini ; fi
58+
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
6159

6260
install:
6361
- travis_retry composer install $COMPOSER_ARGS --ignore-platform-reqs
@@ -68,9 +66,11 @@ install:
6866
- stty cols 120 && composer show
6967

7068
script:
71-
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; fi
72-
- if [[ $TEST_COVERAGE != 'true' ]]; then composer test ; fi
73-
- if [[ $CHECK_CS == 'true' ]]; then composer cs-check ; fi
69+
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi
70+
- if [[ $CS_CHECK == 'true' ]]; then composer cs-check ; fi
7471

7572
after_script:
76-
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry php ./vendor/bin/php-coveralls ; fi
73+
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry php vendor/bin/php-coveralls -v ; fi
74+
75+
notifications:
76+
email: false

0 commit comments

Comments
 (0)