-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (31 loc) · 1.06 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
language: php
php:
- 7.0
- 7.1
- 7.2
- hhvm
- nightly
env:
matrix:
- COMPOSER_EXTRA_ARGS=""
- COMPOSER_EXTRA_ARGS="--prefer-lowest --prefer-stable"
matrix:
allow_failures:
- php: hhvm
before_install:
- composer self-update
install:
- mkdir -p vendor/bin
- composer update --no-interaction --prefer-source $COMPOSER_EXTRA_ARGS
before_script:
- ./vendor/bin/parallel-lint -e php,phpt --exclude vendor .
- ./vendor/bin/phpstan analyse -l 5 src tests
- composer create-project nette/code-checker code-checker dev-master --no-interaction
- php code-checker/src/code-checker.php -d src
- php code-checker/src/code-checker.php -d tests
script:
- vendor/bin/tester tests -s -p php
after_script:
- curl https://github.com/romanmatyus/DateInterval | grep -o '<img[ ]*src="[^"]*"' | grep -o '"[^"]*"' | grep -o '[^"]*' | grep https://camo.githubusercontent.com | xargs -L1 curl -X PURGE
after_failure:
- for i in $(find tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done