-
Notifications
You must be signed in to change notification settings - Fork 26
/
.travis.yml
57 lines (44 loc) · 1.66 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
language: php
php:
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4
- 8.0
install:
- travis_retry composer install --no-interaction --no-progress
script:
- vendor/bin/tester tests -s
after_failure:
- for i in $(find tests -name \*.expected); do echo "--- $i"; cat $i; echo; echo; done
- for i in $(find tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done
jobs:
include:
- env: title="Lowest Dependencies"
install:
- travis_retry composer update --no-interaction --no-progress --prefer-lowest --prefer-stable
- stage: Code Standard Checker
php: 7.1
install:
- travis_retry composer create-project nette/code-checker temp/code-checker --no-interaction --no-progress
- travis_retry composer create-project nette/coding-standard temp/coding-standard --no-interaction --no-progress
script:
- php temp/code-checker/src/code-checker.php --short-arrays
- php temp/coding-standard/ecs check src tests --config temp/coding-standard/coding-standard-php56.neon
- stage: Code Coverage
php: 7.1
script:
- vendor/bin/tester -p phpdbg tests -s --coverage ./coverage.xml --coverage-src ./src
after_script:
- wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar
- php coveralls.phar --verbose --config tests/.coveralls.yml
allow_failures:
- stage: Code Coverage
sudo: false
cache:
directories:
- $HOME/.composer/cache
notifications:
email: false