forked from nette/tester
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (39 loc) · 1.2 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
language: php
php:
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm
env:
- TESTER_PHP_BIN=php
- TESTER_PHP_BIN=php-cgi
matrix:
allow_failures:
- php: hhvm
exclude:
- php: hhvm
env: TESTER_PHP_BIN=php-cgi
include:
- php: 7.0
env: TESTER_PHP_BIN=phpdbg COVERAGE="--coverage ./coverage.xml --coverage-src ./src"
script:
- src/tester -p $TESTER_PHP_BIN tests -s $COVERAGE
- src/tester -p $TESTER_PHP_BIN -o none tests/fail.phptx; if [ $? -eq 0 ]; then echo "tests/fail.phptx SHOULD FAIL"; exit 1; else echo "fail checked"; fi;
- php code-checker/src/code-checker.php
after_failure:
# Print *.actual content
- for i in $(find tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done
before_script:
- travis_retry composer create-project nette/code-checker code-checker ~2.5 --no-interaction
after_script:
# Report Code Coverage
- >
if [ "$COVERAGE" != "" ]; then
wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar
&& php coveralls.phar --verbose --config tests/.coveralls.yml
|| true; fi
sudo: false
cache:
directories:
- $HOME/.composer/cache