-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
36 lines (30 loc) · 939 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
language: php
cache:
directories:
- $HOME/.composer/cache
- $HOME/.php-cs-fixer
matrix:
include:
- php: 7.0
env:
- DEPENDENCIES="--prefer-stable"
- TEST_COVERAGE=true
- php: 7.1
env:
- DEPENDENCIES="--prefer-stable"
- TEST_COVERAGE=true
- php: 7.2
env:
- DEPENDENCIES="--prefer-stable"
- TEST_COVERAGE=true
before_script:
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
- travis_retry composer self-update
- composer update --prefer-source $DEPENDENCIES
script:
- if [[ $CS_CHECK == 'true' ]]; then composer cs-check ; fi
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi
after_script:
- if [[ $TEST_COVERAGE == 'true' ]]; then composer upload-coverage ; fi
after_success:
- if [[ $TEST_COVERAGE == 'true' ]]; then php vendor/bin/php-coveralls -v; fi