-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy path.travis.yml
73 lines (60 loc) · 1.71 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
notifications:
email: false
language: php
php:
- 7.1
- 7.2
- nightly
env:
global:
- COMPOSER_ARGS="--no-progress --prefer-dist --no-interaction --no-suggest"
- PHPUNIT_ARGS=""
matrix:
include:
- php: 7.1
env:
- DEPS=low
- php: 7.1
env:
- DEPS=high
- CC=true
- CS=true
- SA=true
- php: 7.2
env:
- DEPS=low
- php: 7.2
env:
- DEPS=high
allow_failures:
- php:
- nightly
fast_finish: true
before_script:
- if [[ $CC != true ]] ; then phpenv config-rm xdebug.ini || true ; fi
- if [[ $CS = true ]] ; then mkdir -p var/cache ; fi
- travis_retry composer self-update
before_install:
- source .travis/tfold
install:
- if [[ $DEPS != high || $TRAVIS_BRANCH != master ]] ; then travis_retry php .travis/packager.php HEAD^ $(find src/*/composer.json -type f -printf '%h\n') ; fi
- if [[ ! $DEPS ]] ; then travis_retry bin/composer install $COMPOSER_ARGS ; fi
- if [[ $DEPS = high ]] ; then travis_retry bin/composer update $COMPOSER_ARGS --prefer-stable ; fi
- if [[ $DEPS = low ]] ; then travis_retry bin/composer update $COMPOSER_ARGS --prefer-stable --prefer-lowest ; fi
- bin/phpunit install
- if [[ $CS = true || $SA = true ]] ; then composer install $COMPOSER_ARGS ; fi
script:
- if [[ ! $CC ]] ; then bin/phpunit $PHPUNIT_ARGS ; fi
- if [[ $CC = true ]] ; then bin/phpunit --coverage-clover=coverage.xml $PHPUNIT_ARGS ; fi
- if [[ $CS = true ]] ; then bin/cs ; fi
- if [[ $SA = true ]] ; then bin/sa ; fi
after_success:
- if [[ $CC = true ]] ; then .travis/codecov ; fi
cache:
directories:
- $HOME/.composer/cache/files/
- var/
branches:
only:
- master
- /^\d\.\d$/