-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
35 lines (29 loc) · 1.01 KB
/
.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
sudo: false
language: php
matrix:
fast_finish: true
include:
- php: 7.1
env:
- EXECUTE_TEST_COVERAGE=true
- php: 7.2
env:
- EXECUTE_CS_CHECK=true
allow_failures:
- php: nightly
before_install:
- if [[ $EXECUTE_TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
- composer self-update
install:
- travis_retry composer install --no-interaction --ignore-platform-reqs --prefer-source --no-scripts
script:
- if [[ $EXECUTE_TEST_COVERAGE == 'true' ]]; then composer test -- --coverage-xml ; fi
- if [[ $EXECUTE_TEST_COVERAGE != 'true' ]]; then composer test ; fi
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then composer check-style ; fi
after_script:
- if [[ $EXECUTE_TEST_COVERAGE == 'true' ]]; then wget https://scrutinizer-ci.com/ocular.phar ; fi
- if [[ $EXECUTE_TEST_COVERAGE == 'true' ]]; then php ocular.phar code-coverage:upload --format=php-clover tests/_output/coverage.xml ; fi
cache:
directories:
- vendor
- $HOME/.composer/cache