Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

Commit

Permalink
Improve test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterj committed Feb 10, 2016
1 parent bfdd355 commit 724db6a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 18 deletions.
28 changes: 14 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
7 changes: 3 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,18 @@
"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.*",
"symfony/config": "^2.2",
"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.*",
Expand Down

0 comments on commit 724db6a

Please sign in to comment.