|
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-progress --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 | + - env: title="Lowest Dependencies" |
| 23 | + install: |
| 24 | + - travis_retry composer update --no-progress --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-progress |
| 32 | + # Install Nette Coding Standard |
| 33 | + - travis_retry composer create-project nette/coding-standard temp/coding-standard --no-progress |
| 34 | + |
| 35 | + script: |
| 36 | + - php temp/code-checker/src/code-checker.php --short-arrays --strict-types |
| 37 | + - php temp/coding-standard/ecs check src tests --config temp/coding-standard/coding-standard-php71.neon |
| 38 | + |
| 39 | + |
| 40 | + - stage: Code Coverage |
| 41 | + script: |
| 42 | + - vendor/bin/tester -p phpdbg tests -s --coverage ./coverage.xml --coverage-src ./src |
| 43 | + after_script: |
| 44 | + - wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar |
| 45 | + - php coveralls.phar --verbose --config tests/.coveralls.yml |
| 46 | + |
| 47 | + |
| 48 | + allow_failures: |
| 49 | + - stage: Code Coverage |
| 50 | + |
50 | 51 |
|
51 | 52 | sudo: false
|
52 | 53 |
|
53 | 54 | cache:
|
54 | 55 | directories:
|
55 | 56 | - $HOME/.composer/cache
|
| 57 | + |
| 58 | +notifications: |
| 59 | + email: false |
0 commit comments