From 2d733277e614bd4569530e63c676722c2b9df15f Mon Sep 17 00:00:00 2001 From: Jeremy Date: Fri, 27 Mar 2015 19:47:30 +0100 Subject: Switch to Docker-based infrastructure --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index ff23ad45..a697e74b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,8 @@ language: php +# use docker-container infra +sudo: false + php: - 5.4 - 5.5 @@ -11,7 +14,6 @@ branches: before_script: - composer self-update - - echo 'date.timezone = "Europe/Paris"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini script: - ant prepare -- cgit v1.2.3 From 6141388969aaf5d2ad1c4d3bdd6d688ea1decf9f Mon Sep 17 00:00:00 2001 From: Jeremy Date: Fri, 27 Mar 2015 19:58:48 +0100 Subject: Enable hhvm & nightly for curiosity --- .travis.yml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index a697e74b..d9344827 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,13 @@ php: - 5.4 - 5.5 - 5.6 + - hhvm + - nightly + +matrix: + allow_failures: + - php: hhvm + - php: nightly branches: only: -- cgit v1.2.3 From 3e6b7ea0e9251d8ae69af5dc2e1eb65887c3da9f Mon Sep 17 00:00:00 2001 From: Jeremy Date: Sat, 28 Mar 2015 00:23:25 +0100 Subject: Rewrite travis & add scrutinizer --- .travis.yml | 46 ++++++++++++++++++++++++++++++++-------------- 1 file changed, 32 insertions(+), 14 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index d9344827..6e938826 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,27 +1,45 @@ language: php -# use docker-container infra +# faster builds on docker-container setup sudo: false +# cache vendor dirs +cache: + directories: + - vendor + - $HOME/.composer/cache + php: - - 5.4 - - 5.5 - - 5.6 - - hhvm - - nightly + - 5.4 + - 5.5 + - 5.6 + - hhvm + - nightly matrix: - allow_failures: - - php: hhvm - - php: nightly + fast_finish: true + allow_failures: + - php: hhvm + - php: nightly branches: - only: - - v2 + only: + - v2 + +install: + - composer self-update +# build coverage only on one build, to speed up results feedbacks before_script: - - composer self-update + - if [[ "$TRAVIS_PHP_VERSION" = "5.6" ]]; then PHPUNIT_FLAGS="--coverage-clover=coverage.clover"; fi; script: - - ant prepare - - phpunit --coverage-text + - ant prepare + - phpunit $PHPUNIT_FLAGS + +after_script: + - | + if [ $TRAVIS_PHP_VERSION = '5.6' ]; then + wget https://scrutinizer-ci.com/ocular.phar + php ocular.phar code-coverage:upload --format=php-clover coverage.clover + fi -- cgit v1.2.3