forked from contributte/gopay-inline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
71 lines (58 loc) · 1.78 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
65
66
67
68
69
70
71
language: php
php:
- 7.1
- 7.2
- 7.3
- 7.4
env:
- CODE_CHECKER_VERSION=^3.1
matrix:
fast_finish: true
allow_failures:
- php: 7.4
include:
- php: 7.1
env: COMPOSER_FLAG=--prefer-lowest
- php: 7.1
env: COMPOSER_FLAG=--prefer-stable
- php: 7.2
env: COMPOSER_FLAG=--prefer-lowest
- php: 7.2
env: COMPOSER_FLAG=--prefer-stable
- php: 7.3
env: COMPOSER_FLAG=--prefer-lowest
- php: 7.3
env: COMPOSER_FLAG=--prefer-stable
- php: 7.4
env: COMPOSER_FLAG=--prefer-lowest
- php: 7.4
env: COMPOSER_FLAG=--prefer-stable
before_script:
# Composer
- travis_retry composer install --no-interaction
# Coverage
- if [[ "$TRAVIS_PHP_VERSION" == "7.1" && "$COMPOSER_FLAG" == "" ]]; then COVERAGE=1; fi
script:
# Quality Assurance
- composer run-script qa-linter
- composer run-script qa-codesniffer
# CodeChecker
- composer create-project nette/code-checker temp/code-checker $CODE_CHECKER_VERSION --no-interaction
- php temp/code-checker/src/code-checker.php --short-arrays
# Nette\Tester
- composer run-script qa-tester-info
- composer run-script qa-tester
# Nette\Tester + CodeCoverage
- if [ "$COVERAGE" != "" ]; then composer run-script qa-tester-coverage-info; fi
- if [ "$COVERAGE" != "" ]; then composer run-script qa-tester-coverage; fi
after_script:
# Coverage (Coveralls)
- if [ "$COVERAGE" != "" ]; then wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar; fi
- if [ "$COVERAGE" != "" ]; then php coveralls.phar --verbose --config tests/.coveralls.yml; fi
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