Skip to content

Commit

Permalink
[Travis] Use containers
Browse files Browse the repository at this point in the history
  • Loading branch information
boekkooi committed Sep 11, 2015
1 parent bca6397 commit bb25b75
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ language: php

php: [5.3.3, 5.3, 5.4, 5.5, 5.6, 7.0, hhvm]

sudo: false

matrix:
include:
- { php: 5.3.3, env: "SYMFONY_VERSION=2.3.*" }
Expand All @@ -15,20 +17,20 @@ matrix:

before_script:
# Install npm deps
- travis_retry npm install grunt-cli -g
- travis_retry npm install grunt-cli
- travis_retry npm install
# Update composer and deps
- sh -c 'if [ "${SYMFONY_VERSION}" != "" ]; then composer require --no-update symfony/symfony=${SYMFONY_VERSION}; fi;'
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source

script:
- vendor/bin/phpunit ${PHPUNIT_COVERAGE}
- grunt test
- node_modules/.bin/grunt test

after_script:
- if [[ "${PHPUNIT_COVERAGE}" != "" ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
- if [[ "${PHPUNIT_COVERAGE}" != "" ]]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi

cache:
directories:
- $HOME/.composer/
- $HOME/.composer

0 comments on commit bb25b75

Please sign in to comment.