Skip to content

Commit

Permalink
Travis: Cleanup configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed Mar 30, 2016
1 parent 56cf879 commit bdf65ea
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 18 deletions.
28 changes: 13 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ language: php

php:
- hhvm
- nightly

sudo: false

Expand All @@ -14,35 +15,34 @@ env:
global:
- PATH="$HOME/.composer/vendor/bin:$PATH"
- SYMFONY_DEPRECATIONS_HELPER=weak
- TARGET=test

matrix:
fast_finish: true
include:
- php: 5.6
- php: 5.3
env: SYMFONY_VERSION=2.8.*
- php: 5.4
env: SYMFONY_VERSION=2.8.*
- php: 5.6
env: SYMFONY_VERSION=2.8.* CS_FIXER=run
- php: 7.0
env: TARGET=cs_dry_run
- php: 7.0
env: TARGET=docs
- php: 5.3
env: COMPOSER_FLAGS="--prefer-lowest"
env: COMPOSER_FLAGS="--prefer-lowest --prefer-stable"
- php: 5.6
env: SYMFONY_VERSION=2.3.*
- php: 5.6
env: SYMFONY_VERSION=2.7.*
- php: 5.6
env: SYMFONY_VERSION=2.8.*
- php: 5.5
env: SYMFONY_VERSION="3.0.*" ACL_VERSION="dev-master"
env: SYMFONY_VERSION=3.0.*
- php: 5.6
env: SYMFONY_VERSION="3.0.*" ACL_VERSION="dev-master"
env: SYMFONY_VERSION=3.0.*
- php: 7.0
env: SYMFONY_VERSION="3.0.*" ACL_VERSION="dev-master"
env: SYMFONY_VERSION=3.0.*

allow_failures:
- php: hhvm
- env: SYMFONY_VERSION="3.0.*" ACL_VERSION="dev-master"
- php: nightly
- env: SYMFONY_VERSION=3.0.*

before_script:
- (phpenv config-rm xdebug.ini || exit 0)
Expand All @@ -52,14 +52,12 @@ before_script:
- composer global require phpunit/phpunit:@stable fabpot/php-cs-fixer --no-update
- composer global update --prefer-dist --no-interaction
- if [ "$SYMFONY_VERSION" != "" ]; then composer require "symfony/symfony:${SYMFONY_VERSION}" --no-update; fi;
- if [ "$ACL_VERSION" != "" ]; then composer require "symfony/security-acl:${ACL_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:
- if [ "$CS_FIXER" = "run" ]; then make cs_dry_run ; fi;
- make test
- make $TARGET

notifications:
webhooks: https://sonata-project.org/bundles/page/master/travis
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
cs:
./vendor/bin/php-cs-fixer fix --verbose
php-cs-fixer fix --verbose

cs_dry_run:
./vendor/bin/php-cs-fixer fix --verbose --dry-run
php-cs-fixer fix --verbose --dry-run

test:
phpunit

docs:
cd Resources/doc && sphinx-build -W -b html -d _build/doctrees . _build/html

assets:
Expand Down
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
"require-dev": {
"sonata-project/doctrine-orm-admin-bundle": "~2.2",
"symfony/phpunit-bridge": "~2.7|~3.0",
"fabpot/php-cs-fixer": "~0.1|~1.0",
"friendsofsymfony/rest-bundle": "~1.1",
"jms/serializer-bundle": "~0.11|~1.0",
"nelmio/api-doc-bundle": "~2.4"
Expand Down

0 comments on commit bdf65ea

Please sign in to comment.