-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
45 lines (36 loc) · 1.27 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
language: php
sudo: false
php:
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- nightly
- hhvm
env:
- ASYNC_SOCKETS_CONFIG=tests/travis/config.yml
addons:
apt:
packages:
- libevent-dev
before_install:
- composer self-update
- mkdir -p build/logs
- mkdir -p build/cache
- wget https://scrutinizer-ci.com/ocular.phar
install:
- bash ./travis-install.sh
before_script:
- if [[ $TRAVIS_PHP_VERSION = '5.6' ]]; then PHPUNIT_FLAGS_1="--coverage-clover ./build/logs/clover-with-eventdispatcher.xml"; else PHPUNIT_FLAGS_1=""; fi
- if [[ $TRAVIS_PHP_VERSION = '5.6' ]]; then PHPUNIT_FLAGS_2="--coverage-clover ./build/logs/clover-no-eventdispatcher.xml"; else PHPUNIT_FLAGS_2=""; fi
script:
- vendor/bin/phpunit -c tests/travis/travis.phpunit.xml -d zend.enable_gc=0 $PHPUNIT_FLAGS_1
- vendor/bin/phpunit -c tests/travis/no-eventdispatcher.phpunit.xml -d zend.enable_gc=0 $PHPUNIT_FLAGS_2
after_script:
- if [[ $TRAVIS_PHP_VERSION = '5.6' ]]; then php ocular.phar code-coverage:upload --format=php-clover ./build/logs/clover-with-eventdispatcher.xml; fi
- if [[ $TRAVIS_PHP_VERSION = '5.6' ]]; then php ocular.phar code-coverage:upload --format=php-clover ./build/logs/clover-no-eventdispatcher.xml; fi
matrix:
allow_failures:
- php: nightly
- php: hhvm