forked from contributte/facebook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
58 lines (47 loc) · 1.23 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
language: php
php:
- 7.1
- 7.2
before_install:
# turn off XDebug
- phpenv config-rm xdebug.ini || return 0
install:
# Composer
- travis_retry composer install --no-progress --prefer-dist
script:
# Nette/Tester
- composer run-script tester
jobs:
include:
- env: title="Lowest Dependencies 7.1"
php: 7.1
install:
- travis_retry composer update --no-progress --prefer-dist --prefer-lowest
script:
- composer run-script tester
- stage: Quality Assurance
php: 7.1
script:
- composer run-script qa
- stage: Test Coverage
php: 7.1
script:
- composer run-script coverage
after_script:
- wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar
- php coveralls.phar --verbose --config tests/.coveralls.yml
- stage: Phpstan
php: 7.1
script:
- composer run-script phpstan-install
- composer run-script phpstan
allow_failures:
- stage: Test Coverage
- stage: Phpstan
after_failure:
# Print *.actual content
- for i in $(find tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done
sudo: false
cache:
directories:
- $HOME/.composer/cache