Skip to content
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

Add travis build matrix for all built-in PostgreSQL versions #899

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
21 changes: 17 additions & 4 deletions .travis.yml
Expand Up @@ -8,17 +8,22 @@ php:

env:
- DB=mysql ENABLE_SECOND_LEVEL_CACHE=1
- DB=pgsql ENABLE_SECOND_LEVEL_CACHE=1
- DB=pgsql ENABLE_SECOND_LEVEL_CACHE=1 POSTGRESQL_VERSION=9.1
- DB=pgsql ENABLE_SECOND_LEVEL_CACHE=1 POSTGRESQL_VERSION=9.2
- DB=pgsql ENABLE_SECOND_LEVEL_CACHE=1 POSTGRESQL_VERSION=9.3
- DB=sqlite ENABLE_SECOND_LEVEL_CACHE=1
- DB=mysql ENABLE_SECOND_LEVEL_CACHE=0
- DB=pgsql ENABLE_SECOND_LEVEL_CACHE=0
- DB=pgsql ENABLE_SECOND_LEVEL_CACHE=0 POSTGRESQL_VERSION=9.1
- DB=pgsql ENABLE_SECOND_LEVEL_CACHE=0 POSTGRESQL_VERSION=9.2
- DB=pgsql ENABLE_SECOND_LEVEL_CACHE=0 POSTGRESQL_VERSION=9.3
- DB=sqlite ENABLE_SECOND_LEVEL_CACHE=0

before_script:
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS doctrine_tests;' -U postgres; fi"
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS doctrine_tests_tmp;' -U postgres; fi"
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'create database doctrine_tests;' -U postgres; fi"
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'create database doctrine_tests_tmp;' -U postgres; fi"
- sh -c "if [ '$DB' = 'pgsql' ]; then sudo service postgresql stop; sudo service postgresql start $POSTGRESQL_VERSION; fi"
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS doctrine_tests_tmp;create database IF NOT EXISTS doctrine_tests;'; fi"
- composer install --prefer-dist --dev

Expand All @@ -32,9 +37,17 @@ matrix:
- php: hhvm
exclude:
- php: hhvm
env: DB=pgsql ENABLE_SECOND_LEVEL_CACHE=0 # driver currently unsupported by HHVM
env: DB=pgsql ENABLE_SECOND_LEVEL_CACHE=0 POSTGRESQL_VERSION=9.1 # driver currently unsupported by HHVM
- php: hhvm
env: DB=pgsql ENABLE_SECOND_LEVEL_CACHE=1 # driver currently unsupported by HHVM
env: DB=pgsql ENABLE_SECOND_LEVEL_CACHE=1 POSTGRESQL_VERSION=9.1 # driver currently unsupported by HHVM
- php: hhvm
env: DB=pgsql ENABLE_SECOND_LEVEL_CACHE=0 POSTGRESQL_VERSION=9.2 # driver currently unsupported by HHVM
- php: hhvm
env: DB=pgsql ENABLE_SECOND_LEVEL_CACHE=1 POSTGRESQL_VERSION=9.2 # driver currently unsupported by HHVM
- php: hhvm
env: DB=pgsql ENABLE_SECOND_LEVEL_CACHE=0 POSTGRESQL_VERSION=9.3 # driver currently unsupported by HHVM
- php: hhvm
env: DB=pgsql ENABLE_SECOND_LEVEL_CACHE=1 POSTGRESQL_VERSION=9.3 # driver currently unsupported by HHVM
- php: hhvm
env: DB=mysqli ENABLE_SECOND_LEVEL_CACHE=0 # driver currently unsupported by HHVM
- php: hhvm
Expand Down