-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
64 lines (47 loc) · 1.43 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
59
60
61
62
63
64
language: php
env:
- TESTER_PHP_BIN="php-cgi"
- TESTER_PHP_BIN="hhvm"
matrix:
include:
- php: 5.3.3
- php: 5.4
- php: 5.5
- php: 5.6
- php: 7.0
- php: 7.1
allow_failures:
- php: hhvm
- php: 5.3.3
- php: 7.1
exclude:
- php: 5.3.3
env: TESTER_PHP_BIN="hhvm"
- php: 5.4
env: TESTER_PHP_BIN="hhvm"
- php: 5.5
env: TESTER_PHP_BIN="hhvm"
- php: 5.6
env: TESTER_PHP_BIN="hhvm"
- php: 7.0
env: TESTER_PHP_BIN="hhvm"
- php: hhvm
env: TESTER_PHP_BIN="php-cgi"
#script:
# - ./vendor/bin/tester -p $TESTER_PHP_BIN -s ./tests/
# - ./vendor/bin/phpcs --report=full --extensions=php ./src
# - ./vendor/bin/tester -p $TESTER_PHP_BIN -c ./tests/GalekTests/Socials/php.ini -s ./tests/
after_failure:
# Vytiskne obsah souborů *.actual
- for i in $(find ./tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done
before_script:
- if [ $TRAVIS_PHP_VERSION == "5.3.3" ]; then composer --global config disable-tls true; composer --global config secure-http false; fi
- travis_retry composer update --no-interaction --prefer-dist $dependencies
- travis_retry composer create-project nette/code-checker code-checker ~2.5 --no-interaction
script:
- ./vendor/bin/tester -p $TESTER_PHP_BIN -s ./tests/
- vendor/bin/phpcs --report=full --extensions=php --standard=PSR1,PSR2 src/
sudo: false
cache:
directories:
- $HOME/.composer/cache