forked from sonata-project/SonataDoctrinePhpcrAdminBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a51daa1
commit b2d5d61
Showing
1 changed file
with
38 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]" |