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