-
Notifications
You must be signed in to change notification settings - Fork 97
/
.travis.yml
41 lines (33 loc) · 1.06 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
language: php
php:
- 7.0
- 7.1
- 7.2
- hhvm
before_install:
- echo -e "machine github.com\n login $CI_USER_TOKEN" > ~/.netrc
# run build against hhvm but allow them to fail
# http://docs.travis-ci.com/user/build-configuration/#Rows-That-are-Allowed-To-Fail
matrix:
fast_finish: true
allow_failures:
- php: hhvm
# faster builds on new travis setup not using sudo
sudo: false
install:
- composer clear-cache
- composer self-update && composer --version
- composer global require "fxp/composer-asset-plugin:~1.4.4"
- export PATH="$HOME/.composer/vendor/bin:$PATH"
# codeception
- travis_retry composer global require "codeception/codeception=2.0.*" "codeception/specify=*" "codeception/verify=*"
- composer update
before_script:
- travis_retry composer self-update
- travis_retry composer install --no-interaction --prefer-source --dev
script:
- php vendor/bin/codecept build
- php vendor/bin/codecept run
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover