-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
43 lines (35 loc) · 1.15 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
language: php
sudo: false
cache:
directories:
- ~/.composer/cache
- vendor
matrix:
fast_finish: true
include:
# Use the newer stack for HHVM as HHVM does not support Precise anymore since a long time and so Precise has an outdated version
- php: hhvm-stable
sudo: required
dist: trusty
group: edge
- php: 5.5
env: coverage=true
- php: 5.6
- php: 7.0
- php: 7.1
allow_failures:
- php: hhvm-stable
install:
- if [[ ! $coverage ]]; then composer install -n -q; fi
- if [[ $coverage = true ]]; then composer require codeclimate/php-test-reporter:~0.3 -n -q; fi
script:
- if [[ ! $coverage ]]; then composer lint && composer test; fi
- if [[ $coverage = true ]]; then ./vendor/bin/phpunit -c tests/phpunit.xml --coverage-clover build/logs/clover.xml; fi
after_success:
- export CI_BUILD_NUMBER="$TRAVIS_BUILD_NUMBER"; export CI_PULL_REQUEST="$TRAVIS_PULL_REQUEST"; export CI_BRANCH="$TRAVIS_BRANCH"
- if [[ $coverage = true ]]; then ./vendor/bin/test-reporter && ./vendor/bin/coveralls -v; fi
branches:
except:
- /^v\d\..*/ # Exclude tags with 'v' as prefix
notifications:
email: false