forked from j0k3r/graby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (34 loc) · 897 Bytes
/
.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
language: php
php:
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- hhvm
# run build against nightly but allow them to fail
matrix:
fast_finish: true
allow_failures:
- php: hhvm
# only one build will send the coverage, this'll speed up other one
include:
- php: 7.0
env: PHPUNIT_FLAGS="--coverage-clover build/logs/clover.xml"
# faster builds on new travis setup not using sudo
sudo: false
# cache vendor dirs
cache:
directories:
- vendor
- $HOME/.composer/cache
before_install:
- if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi;
- composer self-update
install:
- composer install --no-interaction --prefer-dist -o
script:
- mkdir -p build/logs
- phpunit -v $PHPUNIT_FLAGS
after_script:
- if [[ "$PHPUNIT_FLAGS" != "" ]]; then php vendor/bin/coveralls -v; fi;