Commit b5eddcd9 by Timothy J Warren

Another attempt at travis-ci

parent 27ed3ee0
......@@ -16,7 +16,6 @@ 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 'create database todo_test;' -U postgres; fi"
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS todo_test;'; fi";
- export ENVRIONMENT=testing-${DB}
script:
- vendor/bin/phinx migrate -e testing -c tests/phinx/$DB.yml
......
......@@ -32,7 +32,7 @@ exit;
* NOTE: If you change these, also change the error_reporting() code below
*
*/
$env_part = (isset($_ENV['DB'])) ? $_ENV['DB'] : '';
$env_part = (getenv('DB')) ? getenv('DB') : '';
define('ENVIRONMENT', ( ! empty($env_part)) ? "testing-{$env_part}" : 'testing');
/*
*---------------------------------------------------------------
......
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