-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (29 loc) · 1003 Bytes
/
.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
language: php
php:
- 7.1
- 7.2
- 7.3
env:
- TESTER_PHP_BIN="php-cgi"
before_install:
- composer self-update
install:
- composer install --no-interaction --prefer-source
before_script:
- travis_retry composer update
- travis_retry composer create-project nette/code-checker temp/code-checker ~2.5 --no-interaction
script:
# check coding standard for our code
- vendor/bin/php-cs-fixer fix --config=.php_cs.dist -v --dry-run
# - vendor/bin/tester -p $TESTER_PHP_BIN -s ./tests # -c ./tests/php.ini
- vendor/bin/tester ./tests --coverage coverage.xml --coverage-src ./src -d zend_extension=xdebug.so
after_failure:
# print content of output files *.actual
- for i in $(find ./tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done
after_script:
# get scrutinizer for coverage upload
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.xml
cache:
directories:
- $HOME/.composer/cache