diff --git a/.travis.yml b/.travis.yml index 43dc433..c49cbfd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,31 +13,31 @@ sudo: false cache: directories: - $HOME/.composer/cache/files - + env: - - SYMFONY_VERSION=2.7.* SYMFONY_DEPRECATIONS_HELPER=weak + global: + - SYMFONY_DEPRECATIONS_HELPER=21 matrix: include: - - php: 5.3 - env: SYMFONY_VERSION=2.3.* COMPOSER_FLAGS="--prefer-lowest" - php: 5.6 - env: SYMFONY_VERSION=2.3.* SYMFONY_DEPRECATIONS_HELPER=weak + env: DEPS=dev + - php: 5.3 + env: COMPOSER_FLAGS="--prefer-lowest" - php: 5.6 - env: SYMFONY_VERSION=2.8.* + env: SYMFONY_VERSION=2.3.* - php: 5.6 - env: SYMFONY_VERSION=3.0.* - allow_failures: - - env: SYMFONY_VERSION=2.8.* - - env: SYMFONY_VERSION=3.0.* + env: SYMFONY_VERSION=2.7.* fast_finish: true before_install: - - if [ "${TRAVIS_PHP_VERSION}" != "hhvm" ]; then echo "memory_limit = -1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi - - composer selfupdate - - composer require symfony/symfony:${SYMFONY_VERSION} --no-update + - if [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then echo "memory_limit = -1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi + - phpenv config-rm xdebug.ini || true + - composer self-update + - if [ "$DEPS" = "dev" ]; then perl -pi -e 's/^}$/,"minimum-stability":"dev"}/' composer.json; fi + - if [ "$SYMFONY_VERSION" != "" ]; then composer require symfony/symfony:${SYMFONY_VERSION} --no-update; fi -install: composer update $COMPOSER_FLAGS --prefer-dist +install: composer update --prefer-dist $COMPOSER_FLAGS before_script: vendor/symfony-cmf/testing/bin/travis/phpcr_odm_doctrine_dbal.sh diff --git a/composer.json b/composer.json index addf104..ca3703c 100644 --- a/composer.json +++ b/composer.json @@ -9,11 +9,9 @@ "homepage": "https://github.com/symfony-cmf/symfony-cmf/contributors" } ], - "minimum-stability": "dev", - "prefer-stable": true, "require": { "php": "^5.3.9|^7.0", - "symfony-cmf/routing-auto": "^1.1", + "symfony-cmf/routing-auto": "^1.1@RC", "symfony-cmf/routing-bundle": "^1.2.0", "symfony-cmf/core-bundle": "^1.2", "aferrandini/urlizer": "1.0.*", @@ -21,7 +19,8 @@ "jms/metadata": "1.5.*" }, "require-dev": { - "symfony-cmf/testing": "^1.3", + "symfony-cmf/testing": "^1.3@RC", + "symfony-cmf/slugifier-api": "@RC", "symfony/yaml": "^2.1", "matthiasnoback/symfony-dependency-injection-test": "~0.6", "matthiasnoback/symfony-config-test": "0.*",