Fix travis environment variables

This commit is contained in:
Timothy Warren 2014-08-12 17:06:51 -04:00
parent 412aa2e820
commit b3c0e6ac6b

View File

@ -9,8 +9,8 @@ install:
- composer install - composer install
env: env:
- DB=mysql - DB=mysql, ENVIRONMENT=testing-mysql
- DB=pgsql - DB=pgsql, ENVIRONMENT=testing-pgsql
before_script: before_script:
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS todo_test;' -U postgres; fi" - sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS todo_test;' -U postgres; fi"
@ -26,3 +26,11 @@ script:
after_script: after_script:
- wget https://scrutinizer-ci.com/ocular.phar - wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml - php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
matrix:
exclude:
- php: hhvm
env: DB=pgsql, ENVIRONMENT=testing-pgsql
allow_failures:
- php: hhvm
fast_finish: true