-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
57 lines (47 loc) · 1.13 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
46
47
48
49
50
51
52
53
54
55
56
57
language: php
php:
- '7.1'
- nightly
branches:
only:
- master
env:
global:
- PHPSPECT_BIN='bin/phpspec'
- PHPSPECT_FLAGS='-fpretty'
- PHPUNIT_BIN='bin/phpunit'
- PHPUNIT_CONFIG='phpunit.xml.dist'
- PHPUNIT_FLAGS='--stop-on-failure --verbose'
cache:
directories:
- $HOME/.composer/cache/files
- $HOME/.bin/
services: ~
matrix:
fast_finish: true
include:
- php: '7.1'
env:
- COVERAGE="true"
- PHPUNIT_FLAGS="--stop-on-failure --verbose --coverage-text --coverage-clover=coverage.xml"
allow_failures:
- php: nightly
- php: '7.2'
before_install:
- set -eo pipefail
- echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- phpenv config-rm xdebug.ini || true
- |
if [ -n "$COVERAGE" ]; then
PHPUNIT_FLAGS="$PHPUNIT_FLAGS --testdox --coverage-text"
PHPUNIT_BIN="phpdbg -qrr $PHPUNIT_BIN"
else
PHPUNIT_BIN="php -d zend.enable_gc=0
$PHPUNIT_BIN"
fi
install:
- composer update --prefer-dist $COMPOSER_FLAGS
script:
- $PHPUNIT_BIN -c $PHPUNIT_CONFIG $PHPUNIT_FLAGS
notifications:
email: false