Add PostgreSQL to Travis builds

This commit is contained in:
Robbie Averill 2017-09-06 17:16:02 +12:00
parent 840a0cb5e4
commit 1e7a2be663
1 changed files with 2 additions and 1 deletions

View File

@ -11,7 +11,7 @@ matrix:
- php: 5.6
env: DB=MYSQL PHPCS_TEST=1 PHPUNIT_TEST=1
- php: 7.0
env: DB=MYSQL PHPUNIT_TEST=1
env: DB=PGSQL PHPUNIT_TEST=1
- php: 7.1
env: DB=MYSQL PHPUNIT_COVERAGE_TEST=1
@ -23,6 +23,7 @@ before_script:
# Install composer dependencies
- composer install --prefer-dist
- composer require --prefer-dist --no-update silverstripe/recipe-cms:1.0.x-dev
- if [[ $DB == PGSQL ]]; then composer require --prefer-dist --no-update silverstripe/postgresql:2.0.x-dev; fi
- composer update
script: