-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy path.travis.yml
27 lines (21 loc) · 1011 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
language: php
php:
- 7.1
- 7.2
before_install:
- composer self-update
install:
- sudo apt-get update && sudo apt-get install wkhtmltopdf xvfb
- mkdir -p vendor/bin
- wget -O vendor/bin/composer-nette https://raw.githubusercontent.com/Kdyby/TesterExtras/master/bin/composer-nette.php
- php vendor/bin/composer-nette
- composer install --no-interaction --prefer-source
before_script:
- composer create-project --prefer-source --no-interaction jakub-onderka/php-parallel-lint vendor/php-parallel-lint ~0.8
- php vendor/php-parallel-lint/parallel-lint.php -e php,phpt --exclude vendor .
- composer create-project --prefer-source --no-interaction nette/code-checker vendor/code-checker ~2.2
- php vendor/code-checker/src/code-checker.php -d src
- php vendor/code-checker/src/code-checker.php -d tests
script: vendor/bin/tester -p php -c ./tests/php.ini-unix ./tests/KdybyTests/
after_failure:
- 'for i in $(find ./tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done'