Commit 27ed3ee0 by Timothy J Warren

Update travis config to properly select environment

parent b3c0e6ac
......@@ -9,8 +9,8 @@ install:
- composer install
env:
- DB=mysql, ENVIRONMENT=testing-mysql
- DB=pgsql, ENVIRONMENT=testing-pgsql
- DB=mysql
- DB=pgsql
before_script:
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS todo_test;' -U postgres; fi"
......@@ -30,7 +30,7 @@ after_script:
matrix:
exclude:
- php: hhvm
env: DB=pgsql, ENVIRONMENT=testing-pgsql
env: DB=pgsql
allow_failures:
- php: hhvm
fast_finish: true
\ No newline at end of file
......@@ -32,7 +32,8 @@ exit;
* NOTE: If you change these, also change the error_reporting() code below
*
*/
define('ENVIRONMENT', 'testing');
$env_part = (isset($_ENV['DB'])) ? $_ENV['DB'] : '';
define('ENVIRONMENT', ( ! empty($env_part)) ? "testing-{$env_part}" : 'testing');
/*
*---------------------------------------------------------------
* ERROR REPORTING
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment