diff --git a/.travis.yml b/.travis.yml index e3234ed24..52e19148b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,55 +3,59 @@ php: - 7.1 - 7.2 -env: -matrix: - include: - - php: 7.1 - env: dependencies="--prefer-lowest --prefer-stable" - - php: 7.1 - env: coverage=on - - php: 7.1 - env: codingStandard=on +before_install: + # turn off XDebug + - phpenv config-rm xdebug.ini || return 0 - allow_failures: - - php: 7.1 - env: coverage=on +install: + - travis_retry composer install --no-progress --prefer-dist script: - - vendor/bin/tester tests -s -c tests/php-unix.ini $coverageArgs - - > - if [ "$codingStandard" ]; then - php temp/code-checker/src/code-checker.php --short-arrays --strict-types - && php temp/coding-standard/ecs check src tests examples --config temp/coding-standard/coding-standard-php71.neon - && grunt --gruntfile=tests/netteForms/Gruntfile.js test; - fi + - vendor/bin/tester tests -s after_failure: # Print *.actual content - for i in $(find tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done -before_script: - # Install Nette Tester - - travis_retry composer update --no-interaction --prefer-dist $dependencies - # Install Code Checkers - - > - if [ "$codingStandard" ]; then - travis_retry composer create-project nette/code-checker temp/code-checker ~2 --no-interaction; - travis_retry composer create-project nette/coding-standard temp/coding-standard --no-interaction; - npm install -g grunt-cli; cd tests/netteForms; npm install; cd ../..; - fi - - if [ "$coverage" ]; then coverageArgs="-p phpdbg --coverage ./coverage.xml --coverage-src ./src"; fi - -after_script: - # Report Code Coverage - - > - if [ "$coverage" ]; then - wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar - && php coveralls.phar --verbose --config tests/.coveralls.yml; - fi +jobs: + include: + - env: title="Lowest Dependencies" + install: + - travis_retry composer update --no-progress --prefer-dist --prefer-lowest --prefer-stable + + + - stage: Code Standard Checker + php: 7.1 + install: + # Install Nette Code Checker + - travis_retry composer create-project nette/code-checker temp/code-checker ~2 --no-progress + # Install Nette Coding Standard + - travis_retry composer create-project nette/coding-standard temp/coding-standard --no-progress + # Install Grunt + - npm install -g grunt-cli; cd tests/netteForms; npm install; cd ../.. + script: + - php temp/code-checker/src/code-checker.php --short-arrays --strict-types + - php temp/coding-standard/ecs check src tests examples --config temp/coding-standard/coding-standard-php71.neon + - grunt --gruntfile=tests/netteForms/Gruntfile.js test + + + - stage: Code Coverage + script: + - vendor/bin/tester -p phpdbg tests -s --coverage ./coverage.xml --coverage-src ./src + after_script: + - wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar + - php coveralls.phar --verbose --config tests/.coveralls.yml + + + allow_failures: + - stage: Code Coverage + sudo: false cache: directories: - $HOME/.composer/cache + +notifications: + email: false diff --git a/tests/php-unix.ini b/tests/php-unix.ini deleted file mode 100644 index 3cdf09543..000000000 --- a/tests/php-unix.ini +++ /dev/null @@ -1,5 +0,0 @@ -[PHP] -;extension_dir = "./ext" - -[Zend] -;zend_extension="./ext/zend_extension"