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