|
4 | 4 | - 7.1
|
5 | 5 | - 7.2
|
6 | 6 |
|
7 |
| -env: |
8 |
| -matrix: |
9 |
| - include: |
10 |
| - - php: 7.0 |
11 |
| - env: dependencies="--prefer-lowest --prefer-stable" |
12 |
| - - php: 7.0 |
13 |
| - env: coverage=on |
14 |
| - - php: 7.1 |
15 |
| - env: codingStandard=on |
| 7 | +before_install: |
| 8 | + # turn off XDebug |
| 9 | + - phpenv config-rm xdebug.ini || return 0 |
16 | 10 |
|
17 |
| - allow_failures: |
18 |
| - - php: 7.0 |
19 |
| - env: coverage=on |
| 11 | +install: |
| 12 | + - travis_retry composer install --no-progress --prefer-dist |
20 | 13 |
|
21 | 14 | script:
|
22 |
| - - vendor/bin/tester tests -s $coverageArgs |
23 |
| - - > |
24 |
| - if [ "$codingStandard" ]; then |
25 |
| - php temp/code-checker/src/code-checker.php --short-arrays --strict-types |
26 |
| - && php temp/coding-standard/ecs check src tests --config temp/coding-standard/coding-standard-php70.neon; |
27 |
| - fi |
| 15 | + - vendor/bin/tester tests -s |
28 | 16 |
|
29 | 17 | after_failure:
|
30 | 18 | # Print *.actual content
|
31 | 19 | - for i in $(find tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done
|
32 | 20 |
|
33 |
| -before_script: |
34 |
| - # Install Nette Tester |
35 |
| - - travis_retry composer update --no-interaction --prefer-dist $dependencies |
36 |
| - # Install Code Checkers |
37 |
| - - > |
38 |
| - if [ "$codingStandard" ]; then |
39 |
| - travis_retry composer create-project nette/code-checker temp/code-checker ~2 --no-interaction; |
40 |
| - travis_retry composer create-project nette/coding-standard temp/coding-standard --no-interaction; |
41 |
| - fi |
42 |
| - - if [ "$coverage" ]; then coverageArgs="-p phpdbg --coverage ./coverage.xml --coverage-src ./src"; fi |
43 |
| - |
44 |
| -after_script: |
45 |
| - # Report Code Coverage |
46 |
| - - > |
47 |
| - if [ "$coverage" ]; then |
48 |
| - wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar |
49 |
| - && php coveralls.phar --verbose --config tests/.coveralls.yml; |
50 |
| - fi |
| 21 | +jobs: |
| 22 | + include: |
| 23 | + - env: title="Lowest Dependencies" |
| 24 | + install: |
| 25 | + - travis_retry composer update --no-progress --prefer-dist --prefer-lowest --prefer-stable |
| 26 | + |
| 27 | + |
| 28 | + - stage: Code Standard Checker |
| 29 | + php: 7.1 |
| 30 | + install: |
| 31 | + # Install Nette Code Checker |
| 32 | + - travis_retry composer create-project nette/code-checker temp/code-checker ~2 --no-progress |
| 33 | + # Install Nette Coding Standard |
| 34 | + - travis_retry composer create-project nette/coding-standard temp/coding-standard --no-progress |
| 35 | + |
| 36 | + script: |
| 37 | + - php temp/code-checker/src/code-checker.php --short-arrays --strict-types |
| 38 | + - php temp/coding-standard/ecs check src tests --config temp/coding-standard/coding-standard-php70.neon |
| 39 | + |
| 40 | + |
| 41 | + - stage: Code Coverage |
| 42 | + script: |
| 43 | + - vendor/bin/tester -p phpdbg tests -s --coverage ./coverage.xml --coverage-src ./src |
| 44 | + after_script: |
| 45 | + - wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar |
| 46 | + - php coveralls.phar --verbose --config tests/.coveralls.yml |
| 47 | + |
| 48 | + |
| 49 | + allow_failures: |
| 50 | + - stage: Code Coverage |
| 51 | + |
51 | 52 |
|
52 | 53 | sudo: false
|
53 | 54 |
|
54 | 55 | cache:
|
55 | 56 | directories:
|
56 | 57 | - $HOME/.composer/cache
|
| 58 | + |
| 59 | +notifications: |
| 60 | + email: false |
0 commit comments