-
Notifications
You must be signed in to change notification settings - Fork 34
/
.travis.yml
53 lines (45 loc) · 1.11 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
language: php
sudo: false
matrix:
include:
- php: 5.3
env: WITH_LOWEST=true
- php: 5.3
env: WITH_HIGHEST=true
- php: 5.4
env: WITH_LOWEST=true
- php: 5.4
env: WITH_HIGHEST=true
- php: 5.5
env: WITH_LOWEST=true
- php: 5.5
env: WITH_HIGHEST=true
- php: 5.6
env: WITH_LOWEST=true
- php: 5.6
env: WITH_HIGHEST=true
- php: 7.0
env: WITH_LOWEST=true
- php: 7.0
env: WITH_HIGHEST=true
- php: 7.1
env: WITH_LOWEST=true
- php: 7.1
env: WITH_HIGHEST=true WITH_COVERAGE=true
cache:
directories:
- $HOME/.composer/cache
before_install:
- source .travis/travis.sh
- xdebug-disable
- composer self-update
- composer validate
install:
- if [[ "$WITH_LOWEST" == "true" ]]; then composer update --prefer-lowest --prefer-dist; else composer install --prefer-dist; fi
before_script:
- git config --global user.email "travis-ci@codeclimate.com"
- git config --global user.name "Travis CI"
script:
- run-tests
after_success:
- if [[ "$WITH_COVERAGE" == "true" ]]; then php composer/bin/test-reporter; fi