Skip to content

Commit 6bfae24

Browse files
committed
Travis
1 parent c8a2ed5 commit 6bfae24

1 file changed

Lines changed: 25 additions & 25 deletions

File tree

.travis.yml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
11
language: php
22

33
cache:
4-
directories:
5-
- $HOME/.composer/cache
6-
- $HOME/phpcs-cache
4+
directories:
5+
- $HOME/.composer/cache
6+
- $HOME/phpcs-cache
77

88
php:
9-
- 7.1
10-
- 7.2
11-
- 7.3
9+
- 7.1
10+
- 7.2
11+
- 7.3
1212

1313
services:
14-
- elasticsearch
14+
- elasticsearch
1515

1616
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"
2020

2121
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
3030

3131
before_install:
32-
- travis_retry composer self-update
32+
- travis_retry composer self-update
3333

3434
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
3636

3737
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
4141

4242
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
4444

4545
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

Comments
 (0)