|
1 | 1 | language: php |
2 | 2 |
|
3 | 3 | cache: |
4 | | - directories: |
5 | | - - $HOME/.composer/cache |
6 | | - - $HOME/phpcs-cache |
| 4 | + directories: |
| 5 | + - $HOME/.composer/cache |
| 6 | + - $HOME/phpcs-cache |
7 | 7 |
|
8 | 8 | php: |
9 | | - - 7.1 |
10 | | - - 7.2 |
11 | | - - 7.3 |
| 9 | + - 7.1 |
| 10 | + - 7.2 |
| 11 | + - 7.3 |
12 | 12 |
|
13 | 13 | services: |
14 | | - - elasticsearch |
| 14 | + - elasticsearch |
15 | 15 |
|
16 | 16 | env: |
17 | | - matrix: |
18 | | - - RUN_TESTS=1 COMPOSER_EXTRA_ARGS="" |
19 | | - - RUN_TESTS=1 COMPOSER_EXTRA_ARGS="--prefer-lowest" |
| 17 | + matrix: |
| 18 | + - RUN_TESTS=1 COMPOSER_EXTRA_ARGS="" |
| 19 | + - RUN_TESTS=1 COMPOSER_EXTRA_ARGS="--prefer-lowest" |
20 | 20 |
|
21 | 21 | matrix: |
22 | | - fast_finish: true |
23 | | - include: |
24 | | - - php: 7.3 |
25 | | - env: COMPOSER_EXTRA_ARGS="" COVERAGE="--coverage ./coverage.xml --coverage-src ./src" |
26 | | - - php: 7.3 |
27 | | - env: COMPOSER_EXTRA_ARGS="" PHPSTAN=1 RUN_TESTS=0 |
28 | | - - php: 7.3 |
29 | | - env: COMPOSER_EXTRA_ARGS="" CODING_STANDARD=1 RUN_TESTS=0 |
| 22 | + fast_finish: true |
| 23 | + include: |
| 24 | + - php: 7.3 |
| 25 | + env: COMPOSER_EXTRA_ARGS="" COVERAGE="--coverage ./coverage.xml --coverage-src ./src" |
| 26 | + - php: 7.3 |
| 27 | + env: COMPOSER_EXTRA_ARGS="" PHPSTAN=1 RUN_TESTS=0 |
| 28 | + - php: 7.3 |
| 29 | + env: COMPOSER_EXTRA_ARGS="" CODING_STANDARD=1 RUN_TESTS=0 |
30 | 30 |
|
31 | 31 | before_install: |
32 | | - - travis_retry composer self-update |
| 32 | + - travis_retry composer self-update |
33 | 33 |
|
34 | 34 | install: |
35 | | - - travis_retry composer update --no-interaction --no-suggest --no-progress --prefer-dist --prefer-stable $COMPOSER_EXTRA_ARGS # update because we may need --prefer-lowest option |
| 35 | + - travis_retry composer update --no-interaction --no-suggest --no-progress --prefer-dist --prefer-stable $COMPOSER_EXTRA_ARGS # update because we may need --prefer-lowest option |
36 | 36 |
|
37 | 37 | script: |
38 | | - - if [ "$PHPSTAN" = "1" ]; then vendor/bin/phpstan analyse -l 7 -c phpstan.neon src tests; fi |
39 | | - - if [ "$CODING_STANDARD" = "1" ]; then vendor/bin/phpcs --standard=vendor/spameri/coding-standard/src/ruleset.xml --cache=$HOME/phpcs-cache/.phpcs-cache src tests; fi |
40 | | - - if [ "$RUN_TESTS" = "1" ]; then vendor/bin/tester $COVERAGE -s -c ./tests/php.ini-unix ./tests; fi |
| 38 | + - if [ "$PHPSTAN" = "1" ]; then vendor/bin/phpstan analyse -l 7 -c phpstan.neon src tests; fi |
| 39 | + - if [ "$CODING_STANDARD" = "1" ]; then vendor/bin/phpcs --standard=vendor/spameri/coding-standard/src/ruleset.xml --cache=$HOME/phpcs-cache/.phpcs-cache src tests; fi |
| 40 | + - if [ "$RUN_TESTS" = "1" ]; then vendor/bin/tester $COVERAGE -s -c ./tests/php.ini-unix ./tests; fi |
41 | 41 |
|
42 | 42 | after_script: |
43 | | - - if [ "$COVERAGE" != "" ]; then vendor/bin/php-coveralls --verbose --config tests/.coveralls.yml || true; fi |
| 43 | + - if [ "$COVERAGE" != "" ]; then vendor/bin/php-coveralls --verbose --config tests/.coveralls.yml || true; fi |
44 | 44 |
|
45 | 45 | after_failure: |
46 | | - - 'for i in $(find ./tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done' |
| 46 | + - 'for i in $(find ./tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done' |
0 commit comments