Skip to content

Commit

Permalink
Merge pull request #236 from whiteoctober/travis-updates
Browse files Browse the repository at this point in the history
Travis updates
  • Loading branch information
Sam Partington authored Aug 8, 2017
2 parents 466d073 + dacc262 commit 2700705
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,31 @@
language: php

dist: trusty

php:
- 5.3
- 5.4
- 5.5
- 5.6
- hhvm

matrix:
include:
# PHP 5.3 doesn't install on Trusty on Travis: https://github.com/travis-ci/travis-ci/issues/8219
- php: 5.3
dist: precise
# older releases
- php: 5.5
env: SOLARIUM_VERSION=2.* DOCTRINE_ORM_VERSION=2.3.*
# dev versions
- php: 5.5
- php: 5.6
env: COMPOSER_STABILITY=dev

services: mongodb

before_install:
# Add the MongoDB ODM when we can fulfil its ext-mongo dependency
- 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi'
- 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then composer require doctrine/mongodb-odm "~1.0@dev" --dev --no-update; fi'
# Force using dev versions for HHVM as the Doctrine HHVM support is not yet released
- 'if [[ "$COMPOSER_STABILITY" == "dev" || "$TRAVIS_PHP_VERSION" = "hhvm" ]]; then sed -i ''s/"pagerfanta\/pagerfanta"/"pagerfanta\/pagerfanta","minimum-stability": "dev"/g'' composer.json; fi'
- 'echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini'
- 'composer require doctrine/mongodb-odm "~1.0@dev" --dev --no-update'
- 'if [[ "$COMPOSER_STABILITY" == "dev" ]]; then sed -i ''s/"pagerfanta\/pagerfanta"/"pagerfanta\/pagerfanta","minimum-stability": "dev"/g'' composer.json; fi'
# Remove Propel2 dependency for unsupported php versions
- 'if [ "$TRAVIS_PHP_VERSION" == "5.3" ] ; then composer remove propel/propel --dev --no-update; fi'
- sh -c "if [ $DOCTRINE_ORM_VERSION ]; then composer require doctrine/orm:${DOCTRINE_ORM_VERSION} --dev --no-update; fi"
Expand Down

0 comments on commit 2700705

Please sign in to comment.