forked from maxbeckers/amazon-alexa-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
27 lines (21 loc) · 988 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
language: php
php:
- '7.0'
- '7.1'
- '7.2'
install:
- composer install
# Install coveralls.phar
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.2" ]]; then wget -c -nc --retry-connrefused --tries=0 https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar; fi
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.2" ]]; then chmod +x coveralls.phar; fi
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.2" ]]; then php coveralls.phar --version; fi
cache:
directories:
- $HOME/.php-cs-fixer
before_script:
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.2" ]]; then mkdir -p build/logs; fi
script:
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.2" ]]; then php ./vendor/bin/phpunit --coverage-text --coverage-clover ./build/logs/clover.xml; else php ./vendor/bin/phpunit; fi
- php ./vendor/bin/php-cs-fixer fix --config=.php_cs.php --verbose --diff --dry-run --allow-risky=yes;
after_success:
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.2" ]]; then php coveralls.phar -v; fi