forked from doctrine/migrations
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (32 loc) · 1.02 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
language: php
php:
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm
matrix:
allow_failures:
- php: 7.0
include:
- php: 5.4
env: deps=low
env:
global:
- deps=no
- secure: "TaQTGgMHcaejJfKyuHeT7YAc6ysT+xT6j6SEvSKfjIPkroJE/ZXDRdMevTIlkmPz7InLWmWksZ8mfb3ZlFtOYF9H5N88XTuSMCf3Ce+FY8yQNAxLimtpN5qXQ3jLuDLhsG2eI8r/9bIK6Amx9g4GRVeDOvCwJ3lfiaipMRPNKZY="
install:
- if [ "$deps" = "no" ]; then composer $flag install; fi;
- if [ "$deps" = "low" ]; then composer $flag --prefer-lowest --prefer-stable update; fi;
script:
- mkdir -p build/logs
- ./vendor/bin/phpunit
before_install:
- composer self-update
- composer config --quiet github-oauth.github.com $GITHUB_TOKEN
- if [[ ! $GITHUB_TOKEN ]]; then echo "no github token"; fi
- if [[ ! $GITHUB_TOKEN ]]; then flag=--prefer-source; fi
after_script:
- if [[ $TRAVIS_PHP_VERSION = '5.6' ]]; then php vendor/bin/coveralls -v ; fi
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml