Skip to content

Improve test set-up #328

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 29, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 11 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,33 +12,32 @@ sudo: false

cache:
directories:
- $HOME/.composer/cache
- $HOME/.composer/cache/files
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only files is usefull to cache, the other directories contain files that frequently (every hour) change. Caching them will only reduce test speed.


env:
- SYMFONY_VERSION=2.7.* SYMFONY_DEPRECATIONS_HELPER=weak
global:
- SYMFONY_DEPRECATIONS_HELPER=322

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.* SYMFONY_DEPRECATIONS_HELPER=309
env: SYMFONY_VERSION=2.3.*
- php: 5.6
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the 3.0 build was removed as master does not support 3.0 and we have no plan to support it. Still executing the job only means reducing test speed of the complete CMF org (as an org is only allowed to have 6 concurrent jobs)

env: SYMFONY_VERSION=3.0.*
allow_failures:
- 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
- phpenv config-rm xdebug.ini || true

- composer self-update
- composer require symfony/symfony:${SYMFONY_VERSION} --no-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 --prefer-source $COMPOSER_FLAGS
install: composer update --prefer-dist $COMPOSER_FLAGS

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

Expand Down
14 changes: 6 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,34 +11,32 @@
"homepage": "https://github.com/symfony-cmf/RoutingBundle/contributors"
}
],
"minimum-stability": "dev",
"prefer-stable": false,
"require": {
"php": "^5.3.9|^7.0",
"symfony-cmf/routing": "~1.2",
"symfony/framework-bundle": "~2.3"
},
"require-dev": {
"symfony-cmf/core-bundle": "~1.1",
"symfony-cmf/testing": "~1.2,>=1.2.7",
"symfony-cmf/testing": "~1.3@dev",
"doctrine/phpcr-odm": "~1.3",
"matthiasnoback/symfony-dependency-injection-test": "~0.6",
"matthiasnoback/symfony-config-test": "^1.3.1",
"phpunit/php-code-coverage": "@stable",
"sonata-project/doctrine-phpcr-admin-bundle": "^1.1",
"symfony/monolog-bundle": "~2.3",
"doctrine/orm": "~2.3",
"doctrine/data-fixtures": "1.*,>=1.0.0-alpha3"
"doctrine/data-fixtures": "^1.0.0-alpha3"
},
"suggest": {
"doctrine/phpcr-odm": "To enable support for the PHPCR ODM documents",
"doctrine/phpcr-odm": "To enable support for the PHPCR ODM documents (^1.3)",
"doctrine/phpcr-bundle": "To enable support for the PHPCR ODM documents",
"doctrine/orm": "To enable support for the ORM entities",
"doctrine/orm": "To enable support for the ORM entities (^2.3)",

"symfony-cmf/content-bundle": "To optionally use the configured value for 'content_basepath' from the CoreBundle",
"symfony-cmf/core-bundle": "To use the provided Doctrine\\Phpcr documents and for easier configuration",
"symfony-cmf/core-bundle": "To use the provided Doctrine\\Phpcr documents and for easier configuration (^1.1)",

"sonata-project/doctrine-phpcr-admin-bundle": "To provide an admin interface for the PHPCR ODM documents"
"sonata-project/doctrine-phpcr-admin-bundle": "To provide an admin interface for the PHPCR ODM documents (^1.1)"
},
"autoload": {
"psr-4": {
Expand Down