-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
51 lines (38 loc) · 1.1 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
50
51
language: php
sudo: false
env:
- PHP_BIN=php
- PHP_BIN=php-cgi
php:
- 5.6
- 7.0
- hhvm
matrix:
allow_failures:
- php: hhvm
exclude:
- php: hhvm
env: PHP_BIN=php-cgi
include:
- php: 5.6
env: dependencies="--prefer-lowest --prefer-stable" PHP_BIN=php
cache:
directories:
- $HOME/.composer/cache
before_install:
- composer self-update
install:
- composer update --no-interaction --prefer-dist $dependencies
before_script:
- composer create-project --prefer-source --no-interaction jakub-onderka/php-parallel-lint vendor/php-parallel-lint
- 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
- 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_BIN tests -s
after_script:
- php vendor/bin/coveralls -v
after_failure:
# Print the *.actual content
- for i in $(find tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done