-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
48 lines (36 loc) · 1.31 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
language: php
php:
- 7.1
- 7.2
env:
- # dev
- COMPOSER_EXTRA_ARGS="--prefer-stable"
- COMPOSER_EXTRA_ARGS="--prefer-lowest --prefer-stable"
matrix:
fast_finish: true
include:
- php: 7.1
env: COMPOSER_EXTRA_ARGS="--prefer-stable" COVERAGE="--coverage ./coverage.xml --coverage-src ./src" TESTER_RUNTIME="phpdbg"
exclude:
- php: 7.1
env: COMPOSER_EXTRA_ARGS="--prefer-stable"
allow_failures:
- env:
- php: 7.1
env: COMPOSER_EXTRA_ARGS="--prefer-stable" COVERAGE="--coverage ./coverage.xml --coverage-src ./src" TESTER_RUNTIME="phpdbg"
before_install:
# turn off XDebug
- phpenv config-rm xdebug.ini || return 0
install:
- travis_retry composer update --no-interaction --no-suggest --no-progress --prefer-dist $COMPOSER_EXTRA_ARGS
- if [ "$COVERAGE" != "" ]; then travis_retry wget -O /tmp/coveralls.phar https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar; fi
script:
- vendor/bin/tester $COVERAGE -s -p ${TESTER_RUNTIME:-php} ./tests
after_script:
- if [ "$COVERAGE" != "" ]; then php /tmp/coveralls.phar --verbose --config tests/.coveralls.yml || true; fi
after_failure:
# Vytiskne obsah souborů *.actual
- for i in $(find tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done
sudo: false
notifications:
email: false