Skip to content

Commit 16f54f3

Browse files
author
Romain Monteil
committed
[n/a] update Travis configuration
1 parent 23da7e7 commit 16f54f3

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

.travis.yml

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

3-
php:
4-
- 7.0
5-
63
sudo: false
74

5+
cache:
6+
directories:
7+
- $HOME/.composer/cache/files
8+
9+
php:
10+
- 7.1
11+
- 7.2
12+
813
env:
914
global:
10-
- DEFAULT=1
11-
- secure: j+1g/twymlVnvpQlsdS+82IY3xR8GIBB7m8bEmpYP6J1ketRToJWANDre6Xb/33JHEzekcr5Kt0F2UDkNzR5rNbviHqYH4EyHA7VZTikqSSelY+lZF7qo1xTyGRnCJZV6c2bri/rPVSjw1FYngNFh5FGCh7PmpzzeQZkhyCG3Cs=
15+
- secure: j+1g/twymlVnvpQlsdS+82IY3xR8GIBB7m8bEmpYP6J1ketRToJWANDre6Xb/33JHEzekcr5Kt0F2UDkNzR5rNbviHqYH4EyHA7VZTikqSSelY+lZF7qo1xTyGRnCJZV6c2bri/rPVSjw1FYngNFh5FGCh7PmpzzeQZkhyCG3Cs=
1216

1317
matrix:
1418
fast_finish: true
19+
allow_failures:
20+
- php: 7.2
1521

16-
include:
17-
- php: 7
18-
env: PHPCS=1 DEFAULT=0
19-
20-
- php: 7
21-
env: COVERALLS=1 DEFAULT=0
22+
before_install:
23+
- composer self-update
24+
- if [ "$GITHUB_COMPOSER_AUTH" ]; then composer config -g github-oauth.github.com $GITHUB_COMPOSER_AUTH; fi
2225

2326
install:
24-
- composer self-update
25-
- composer config -g github-oauth.github.com $GITHUB_COMPOSER_AUTH
26-
- composer install --prefer-dist --no-interaction --dev
27+
- composer install --prefer-dist --no-interaction
2728

2829
before_script:
29-
- sh -c "if [ '$PHPCS' = '1' ]; then composer require squizlabs/php_codesniffer:dev-master; fi"
30-
31-
- sh -c "if [ '$COVERALLS' = '1' ]; then composer require --dev satooshi/php-coveralls:dev-master; fi"
32-
- sh -c "if [ '$COVERALLS' = '1' ]; then mkdir -p build/logs; fi"
30+
- mkdir -p build/logs
3331

3432
script:
35-
- sh -c "if [ '$COVERALLS' = '1' ]; then phpunit --stderr --coverage-clover build/logs/clover.xml; fi"
36-
- sh -c "if [ '$COVERALLS' = '1' ]; then php vendor/bin/coveralls -v; fi"
37-
- sh -c "if [ '$DEFAULT' = '1' ]; then phpunit --stderr; fi"
38-
- sh -c "if [ '$PHPCS' = '1' ]; then ./vendor/bin/phpcs -n -p --extensions=php --standard=PSR2 --ignore=vendor --ignore=tests . ; fi"
33+
- vendor/bin/php-cs-fixer fix --diff --dry-run
34+
- vendor/bin/phpcs -s --config-set ignore_warnings_on_exit 1
35+
- vendor/bin/phpunit --stderr --coverage-clover build/coverage/xml
36+
37+
after_script:
38+
- vendor/bin/codacycoverage clover build/coverage/xml
3939

4040
notifications:
4141
email: false

0 commit comments

Comments
 (0)