-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.travis.yml
More file actions
30 lines (24 loc) · 879 Bytes
/
.travis.yml
File metadata and controls
30 lines (24 loc) · 879 Bytes
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
language: php
php:
- 7.0
- 7.1
matrix:
fast_finish: true
sudo: false
cache:
directories:
- $HOME/.composer/cache
- vendor
before_script:
# Install Nette Tester
- phpenv config-rm xdebug.ini || true
- if [ "$TRAVIS_PHP_VERSION" == "7.1" ]; then composer require --dev jakub-onderka/php-parallel-lint:~0.9.2; fi
- travis_retry composer update --no-interaction --prefer-source
- cp ./tests/php.ini.unix.sample ./tests/php.ini
script:
- ./vendor/bin/tester -s -c ./tests/php.ini ./tests/cases
- if [ "$TRAVIS_PHP_VERSION" == "7.1" ]; then vendor/bin/parallel-lint src tests/cases; fi
after_failure:
# Print *.actual content & log content
- for i in $(find tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done
- for i in $(find tests -name \*.log); do echo "--- $i"; cat $i; echo; echo; done