From fc92760d20de55885ff3881a9bfeddf274b30259 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Proch=C3=A1zka?= Date: Thu, 21 Apr 2016 23:02:58 +0200 Subject: [PATCH] Travis: better build --- .travis.yml | 42 ++++++++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/.travis.yml b/.travis.yml index cadd960..aebf5b3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,11 +2,9 @@ language: php sudo: false -env: - matrix: - - NETTE=nette-2.3-dev COMPOSER_EXTRA_ARGS="" - - NETTE=nette-2.3 COMPOSER_EXTRA_ARGS="" - - NETTE=nette-2.3 COMPOSER_EXTRA_ARGS="--prefer-lowest" +cache: + directories: + - $HOME/.composer/cache php: - 5.4 @@ -15,28 +13,32 @@ php: - 7.0 - hhvm +env: + matrix: + - NETTE=nette-2.2-dev + - NETTE=nette-2.2 + matrix: + include: + - php: 5.6 + env: NETTE=nette-2.2 COMPOSER_EXTRA_ARGS="--prefer-lowest --prefer-stable" allow_failures: - - php: 7.0 - php: hhvm before_install: - - composer self-update + - travis_retry composer self-update + - wget -O /tmp/composer-nette https://raw.githubusercontent.com/Kdyby/TesterExtras/master/bin/composer-nette.php + - php /tmp/composer-nette install: - - mkdir -p vendor/bin - - wget -O vendor/bin/composer-nette https://raw.githubusercontent.com/Kdyby/TesterExtras/master/bin/composer-nette.php - - php vendor/bin/composer-nette - - composer update --no-interaction --prefer-source $COMPOSER_EXTRA_ARGS - -before_script: - - composer create-project --prefer-source --no-interaction jakub-onderka/php-parallel-lint vendor/php-parallel-lint ~0.8 - - php vendor/php-parallel-lint/parallel-lint.php -e php,phpt --exclude vendor . - - composer create-project --prefer-source --no-interaction nette/code-checker vendor/code-checker ~2.2 - - php vendor/code-checker/src/code-checker.php -d src - - php vendor/code-checker/src/code-checker.php -d tests - -script: vendor/bin/tester -s -p php -c ./tests/php.ini-unix ./tests/KdybyTests/ + - travis_retry composer update --no-interaction --prefer-dist $COMPOSER_EXTRA_ARGS + - travis_retry composer create-project --no-interaction jakub-onderka/php-parallel-lint /tmp/php-parallel-lint + - travis_retry composer create-project --no-interaction nette/code-checker /tmp/code-checker ~2.5 + +script: + - vendor/bin/tester -s -p php -c ./tests/php.ini-unix ./tests/KdybyTests/ + - php /tmp/php-parallel-lint/parallel-lint.php -e php,phpt --exclude vendor . + - php /tmp/code-checker/src/code-checker.php --short-arrays after_failure: - 'for i in $(find ./tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done'