-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
58 lines (51 loc) · 1.55 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
sudo: false
language: php
env:
global:
- COMPOSER_ARGS_NO_INTERACTION=""
- COMPOSER_ARGS_IGNORE_PLATFORM=""
matrix:
include:
- php: 5.5
env:
- DEPS=lowest
- php: 5.5
env:
- DEPS=locked
- php: 5.6
env:
- DEPS=lowest
- php: 5.6
env:
- DEPS=locked
- TEST_COVERAGE=true
- php: 7.0
env:
- DEPS=lowest
- php: 7.0
env:
- DEPS=locked
- php: 7.0
env:
- DEPS=latest
- php: 7.1
env:
- DEPS=lowest
- php: 7.1
env:
- DEPS=locked
- php: 7.1
env:
- DEPS=latest
before_install:
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0; fi
- composer self-update
install:
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable --no-interaction --ignore-platform-reqs ; fi
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update --prefer-stable --no-interaction ; fi
- if [[ $TEST_COVERAGE == 'true' ]]; then composer require --dev --no-interaction --ignore-platform-reqs satooshi/php-coveralls:^1.0 ; fi
- travis_retry composer install --no-interaction --ignore-platform-reqs
script:
- ./vendor/bin/phpunit --configuration phpunit.xml.dist test
after_script:
- if [[ $TEST_COVERAGE == 'true' ]]; then ./vendor/bin/coveralls ; fi