Skip to content

Commit

Permalink
Travis improve
Browse files Browse the repository at this point in the history
  • Loading branch information
soullivaneuh committed Jun 16, 2015
1 parent a51daa1 commit b2d5d61
Showing 1 changed file with 38 additions and 11 deletions.
49 changes: 38 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,55 @@ php:
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm

sudo: false

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

env:
- SYMFONY_VERSION=2.5.*
global:
- SYMFONY_DEPRECATIONS_HELPER=weak

matrix:
fast_finish: true
include:
- php: 5.5
- php: 5.3
env: COMPOSER_FLAGS="--prefer-lowest"
- php: 5.6
env: SYMFONY_VERSION=2.3.*
- php: 5.5
env: SYMFONY_VERSION=2.4.*
- php: 5.5
- php: 5.6
env: SYMFONY_VERSION=2.6.*
- php: 5.6
env: SYMFONY_VERSION=2.7.*
- php: 5.6
env: SYMFONY_VERSION=2.8.*@dev
- php: 5.6
env: SYMFONY_VERSION="3.0.x-dev as 2.8"
allow_failures:
- php: 7.0
- php: hhvm
- env: SYMFONY_VERSION=2.8.*@dev
- env: SYMFONY_VERSION="3.0.x-dev as 2.8"

before_install:
- composer self-update
- sh -c 'if [ "${TRAVIS_PHP_VERSION}" != "hhvm" ]; then echo "memory_limit = -1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi;'
- composer require symfony/framework-bundle:${SYMFONY_VERSION} --dev
- sudo pip install -r Resources/doc/requirements.txt
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
- 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;
- 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: phpunit --coverage-text && cd Resources/doc && sphinx-build -W -b html -d _build/doctrees . _build/html
script: make test

notifications:
webhooks: https://sonata-project.org/bundles/doctrine-phpcr-admin/master/travis
irc: "irc.freenode.org#symfony-cmf"
email: "[email protected]"

0 comments on commit b2d5d61

Please sign in to comment.