-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
53 lines (45 loc) · 1.14 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
sudo: false
language: php
cache:
directories:
- $HOME/.composer/
env:
global:
- COMPOSER_ARGS="--no-interaction"
- COVERAGE_DEPS="satooshi/php-coveralls"
- LEGACY_DEPS="phpunit/phpunit"
matrix:
include:
- php: 7
env: DEPS=lowest
- php: 7
env: DEPS=locked CS_CHECK=true
- php: 7
env: DEPS=latest
- php: 7.1
env: DEPS=lowest
- php: 7.1
env: DEPS=locked
- php: 7.1
env: DEPS=latest
- php: nightly
env: DEPS=lowest
- php: nightly
env: DEPS=locked
- php: nightly
env: DEPS=latest
allow_failures:
- php: nightly
before_install:
- travis_retry composer self-update
install:
- travis_retry composer install $COMPOSER_ARGS --ignore-platform-reqs
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
- stty cols 120
- COLUMNS=120 composer show
script:
- if [[ $CS_CHECK == 'true' ]]; then php vendor/bin/phpcs -n --standard=PSR2 ./src ./tests ; fi
- phpunit
notifications:
email: true