-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
48 lines (39 loc) · 1.09 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
language: php
## Run on container environment
sudo: false
env:
- NETTE=2 COMPOSER_ARGS=""
- NETTE=2 COMPOSER_ARGS="--prefer-lowest"
- NETTE=3 COMPOSER_ARGS=""
- NETTE=3 COMPOSER_ARGS="--prefer-lowest"
- NETTE=master
php:
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4
jobs:
exclude:
- php: 5.6
env: NETTE=3 COMPOSER_ARGS=""
- php: 5.6
env: NETTE=3 COMPOSER_ARGS="--prefer-lowest"
- php: 7.0
env: NETTE=3 COMPOSER_ARGS=""
- php: 7.0
env: NETTE=3 COMPOSER_ARGS="--prefer-lowest"
before_install:
- composer self-update
- php tests/prepare-composer.php
install:
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.6" || ${TRAVIS_PHP_VERSION:0:3} == "7.0" ]]; then composer require --dev nette/tester ^2.0; fi
- composer update --no-interaction --prefer-dist $COMPOSER_ARGS
script:
- vendor/bin/tester tests -s -c tests/php-unix.ini -p php
after_failure:
- for i in $(find tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done
cache:
directories:
- $HOME/.composer/cache