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