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

Commit 724db6a

Browse files
committed
Improve test setup
1 parent bfdd355 commit 724db6a

File tree

2 files changed

+17
-18
lines changed

2 files changed

+17
-18
lines changed

.travis.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,31 +13,31 @@ sudo: false
1313
cache:
1414
directories:
1515
- $HOME/.composer/cache/files
16-
16+
1717
env:
18-
- SYMFONY_VERSION=2.7.* SYMFONY_DEPRECATIONS_HELPER=weak
18+
global:
19+
- SYMFONY_DEPRECATIONS_HELPER=21
1920

2021
matrix:
2122
include:
22-
- php: 5.3
23-
env: SYMFONY_VERSION=2.3.* COMPOSER_FLAGS="--prefer-lowest"
2423
- php: 5.6
25-
env: SYMFONY_VERSION=2.3.* SYMFONY_DEPRECATIONS_HELPER=weak
24+
env: DEPS=dev
25+
- php: 5.3
26+
env: COMPOSER_FLAGS="--prefer-lowest"
2627
- php: 5.6
27-
env: SYMFONY_VERSION=2.8.*
28+
env: SYMFONY_VERSION=2.3.*
2829
- php: 5.6
29-
env: SYMFONY_VERSION=3.0.*
30-
allow_failures:
31-
- env: SYMFONY_VERSION=2.8.*
32-
- env: SYMFONY_VERSION=3.0.*
30+
env: SYMFONY_VERSION=2.7.*
3331
fast_finish: true
3432

3533
before_install:
36-
- if [ "${TRAVIS_PHP_VERSION}" != "hhvm" ]; then echo "memory_limit = -1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi
37-
- composer selfupdate
38-
- composer require symfony/symfony:${SYMFONY_VERSION} --no-update
34+
- if [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then echo "memory_limit = -1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi
35+
- phpenv config-rm xdebug.ini || true
36+
- composer self-update
37+
- if [ "$DEPS" = "dev" ]; then perl -pi -e 's/^}$/,"minimum-stability":"dev"}/' composer.json; fi
38+
- if [ "$SYMFONY_VERSION" != "" ]; then composer require symfony/symfony:${SYMFONY_VERSION} --no-update; fi
3939

40-
install: composer update $COMPOSER_FLAGS --prefer-dist
40+
install: composer update --prefer-dist $COMPOSER_FLAGS
4141

4242
before_script: vendor/symfony-cmf/testing/bin/travis/phpcr_odm_doctrine_dbal.sh
4343

composer.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,18 @@
99
"homepage": "https://github.com/symfony-cmf/symfony-cmf/contributors"
1010
}
1111
],
12-
"minimum-stability": "dev",
13-
"prefer-stable": true,
1412
"require": {
1513
"php": "^5.3.9|^7.0",
16-
"symfony-cmf/routing-auto": "^1.1",
14+
"symfony-cmf/routing-auto": "^1.1@RC",
1715
"symfony-cmf/routing-bundle": "^1.2.0",
1816
"symfony-cmf/core-bundle": "^1.2",
1917
"aferrandini/urlizer": "1.0.*",
2018
"symfony/config": "^2.2",
2119
"jms/metadata": "1.5.*"
2220
},
2321
"require-dev": {
24-
"symfony-cmf/testing": "^1.3",
22+
"symfony-cmf/testing": "^1.3@RC",
23+
"symfony-cmf/slugifier-api": "@RC",
2524
"symfony/yaml": "^2.1",
2625
"matthiasnoback/symfony-dependency-injection-test": "~0.6",
2726
"matthiasnoback/symfony-config-test": "0.*",

0 commit comments

Comments
 (0)