forked from doctrine-extensions/DoctrineExtensions
-
Notifications
You must be signed in to change notification settings - Fork 52
/
.travis.yml
32 lines (25 loc) · 1 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
- hhvm
matrix:
allow_failures:
- php: hhvm
services: mongodb
before_install:
- sh -c "if [[ $TRAVIS_PHP_VERSION != 'hhvm' && `php-config --vernum` -ge 50500 ]]; then yes ''| pecl install apcu-beta; else echo 'extension="apc.so"' >> ./tests/travis/php.ini; fi"
- sh -c "if [ $TRAVIS_PHP_VERSION != 'hhvm' ]; then phpenv config-add ./tests/travis/php.ini; fi"
# Allow dev versions for HHVM as the Doctrine HHVM support is not yet released
- 'if [[ "$TRAVIS_PHP_VERSION" = "hhvm" ]]; then composer require --dev --no-update doctrine/orm "~2.5@dev" doctrine/dbal "~2.5@dev"; fi'
# Remove the ODM requirement on HHVM as it does not support mongo
- 'if [ "$TRAVIS_PHP_VERSION" = "hhvm" ]; then grep -v "doctrine/mongodb-odm" composer.json > composer.json.new && mv composer.json.new composer.json; fi'
install:
- composer install
script: phpunit -c tests/
notifications:
email:
- gediminas.morkevicius@gmail.com
- developers@atlantic18.com