forked from woohoolabs/zen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (27 loc) · 818 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
28
29
30
31
32
33
34
35
36
sudo: false
language: php
cache:
directories:
- $HOME/.composer/cache/files
env:
global:
- TEST_COMMAND="./vendor/bin/phpunit"
matrix:
fast_finish: true
include:
- php: 7.0
env:
- EXECUTE_COVERAGE=true
- TEST_COMMAND="./vendor/bin/phpunit --coverage-clover coverage.clover"
- php: 7.1
notifications:
email: true
before_install:
- if [[ "$EXECUTE_COVERAGE" != "true" ]]; then phpenv config-rm xdebug.ini || return 0; fi
install:
- travis_retry composer install --no-interaction --prefer-dist
script:
- $TEST_COMMAND
after_success:
- if [[ "$EXECUTE_COVERAGE" == "true" ]]; then wget https://scrutinizer-ci.com/ocular.phar ; fi
- if [[ "$EXECUTE_COVERAGE" == "true" ]]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover ; fi