From 940f922716ddadb559bb45ed0592c4b57c4d6921 Mon Sep 17 00:00:00 2001 From: Robin Speekenbrink Date: Mon, 20 Jul 2015 09:51:39 +0200 Subject: [PATCH] try to stabalize the travis builds By utilizing the new container infrastructure (http://docs.travis-ci.com/user/workers/container-based-infrastructure/) and not doing more than needed ... (still 5.4 which is slated to be removed) --- .travis.yml | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1bb91dd..dc0a1c7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,11 @@ language: php +sudo: false + +cache: + directories: + - $HOME/.composer/cache + php: - 5.4 - 5.5 @@ -12,20 +18,9 @@ matrix: - php: 7 fast_finish: true -cache: - directories: - - vendor - - $HOME/.composer/cache - install: - mkdir -p /home/travis/.phpenv/versions/$(phpenv version-name)/etc/conf.d - phpenv config-add test/phpconfig.ini - - travis_retry composer self-update && composer --version - - export PATH="$HOME/.composer/vendor/bin:$PATH" - - travis_retry composer install --prefer-dist --no-interaction - -script: vendor/bin/phpunit --coverage-clover coverage.clover + - composer install -after_script: - - wget https://scrutinizer-ci.com/ocular.phar - - php ocular.phar code-coverage:upload --format=php-clover coverage.clover \ No newline at end of file +script: vendor/bin/phpunit \ No newline at end of file