-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
58 lines (43 loc) · 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
52
53
54
55
56
57
58
# set environment
language: php
# php versions
php:
- 7.1
- 7.2
- 7.3
- hhvm
env:
- TESTER_PHP_BIN="php-cgi"
- TESTER_PHP_BIN="hhvm"
matrix:
exclude:
- php: 7.1
env: TESTER_PHP_BIN="hhvm"
- php: 7.2
env: TESTER_PHP_BIN="hhvm"
- php: 7.3
env: TESTER_PHP_BIN="hhvm"
- php: hhvm
env: TESTER_PHP_BIN="php-cgi"
allow_failures:
- php: 7.1
- php: hhvm
before_install:
- composer self-update
install:
- composer install --prefer-source --no-interaction
# before runs environment
before_script:
- chmod +x build.sh
script:
# phpstan
- ./vendor/bin/phpstan analyse -l 7 --memory-limit=500M --debug -c phpstan.neon
# phpunit
- ./vendor/bin/phpunit --colors=always -c phpunit.xml
# nette tester
#- ./vendor/bin/tester -p $TESTER_PHP_BIN -s -c ./tests/php.ini ./tests
after_success:
after_failure:
# display content of files *.actual
#- for i in $(find ./tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done
after_script: