Skip to content

Commit

Permalink
Travis improve
Browse files Browse the repository at this point in the history
  • Loading branch information
soullivaneuh committed Jun 14, 2015
1 parent 1de7f32 commit 60a3d35
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,22 @@ php:
- 7.0
- hhvm

sudo: false

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

env:
global:
- SYMFONY_DEPRECATIONS_HELPER=weak

matrix:
fast_finish: true
include:
- php: 5.3.3
- php: 5.3
env: COMPOSER_FLAGS="--prefer-lowest"
- php: 5.6
env: SYMFONY_VERSION=2.3.*
Expand All @@ -34,12 +42,16 @@ matrix:
- env: SYMFONY_VERSION="3.0.x-dev as 2.8"

before_script:
- mkdir -p ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d
- echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- composer selfupdate
- composer config -q github-oauth.github.com $GITHUB_OAUTH_TOKEN
- if [ "$SYMFONY_VERSION" = "2.8.*@dev" ] || [ "$SYMFONY_VERSION" = "3.0.x-dev as 2.8" ]; then SYMFONY_DEPRECATIONS_HELPER=strict; fi;
- if [ "$SYMFONY_VERSION" != "" ]; then composer require "symfony/symfony:${SYMFONY_VERSION}" --no-update; fi;
- composer update --prefer-source --no-interaction $COMPOSER_FLAGS
- sudo pip install -r Resources/doc/requirements.txt
- travis_wait composer update --prefer-dist --no-interaction $COMPOSER_FLAGS
- export PATH=$HOME/.local/bin:$PATH
- pip install -r Resources/doc/requirements.txt --user `whoami`

script: make test

Expand Down

0 comments on commit 60a3d35

Please sign in to comment.