From 7e1c5769207d29d244dd779804c70d201ea87557 Mon Sep 17 00:00:00 2001 From: Fabian Grutschus Date: Tue, 25 Apr 2017 16:14:38 +0200 Subject: [PATCH 1/3] Speed up TravisCI build and test with lowest and latests dependencies --- .travis.yml | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index f9bfa96..37f032e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,17 +1,37 @@ language: php +sudo: false + +git: + depth: 2 + +cache: + directories: + - $HOME/.composer/cache + php: - 5.5 - 5.6 - 7 + - 7.1 + - nightly - hhvm matrix: allow_failures: - php: hhvm + fast_finish: true + +env: + matrix: + - PREFER_LOWEST="" + - PREFER_LOWEST="--prefer-lowest" + +before_install: + - composer config --global github-oauth.github.com $GITHUB_OAUTH_TOKEN -before_script: - - composer install --no-interaction --prefer-source +install: + - composer update --no-interaction --prefer-stable --prefer-dist --no-suggest --no-scripts --no-plugins $PREFER_LOWEST script: - ./vendor/bin/phpunit --coverage-clover ./build/clover.xml From 91cc2c0dddb446d0d91dc5e4f11021a04af8be14 Mon Sep 17 00:00:00 2001 From: Fabian Grutschus Date: Tue, 25 Apr 2017 16:22:00 +0200 Subject: [PATCH 2/3] Use colors when executing unit tests --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 37f032e..5b2ae54 100644 --- a/.travis.yml +++ b/.travis.yml @@ -34,7 +34,7 @@ install: - composer update --no-interaction --prefer-stable --prefer-dist --no-suggest --no-scripts --no-plugins $PREFER_LOWEST script: - - ./vendor/bin/phpunit --coverage-clover ./build/clover.xml + - ./vendor/bin/phpunit --colors --coverage-clover ./build/clover.xml - if [ $TRAVIS_PHP_VERSION != 'hhvm' ] && [ $TRAVIS_PHP_VERSION != '7' ]; then php build/coverage-checker.php build/clover.xml 70; fi - ./vendor/bin/phpcs From 6741bf6c91632a7bdc18930cda2c7fa2c4df3e9c Mon Sep 17 00:00:00 2001 From: Fabian Grutschus Date: Tue, 25 Apr 2017 16:29:10 +0200 Subject: [PATCH 3/3] Lets nightly be able to fail --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 5b2ae54..32961ae 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,6 +20,7 @@ php: matrix: allow_failures: - php: hhvm + - php: nightly fast_finish: true env: