Another attempt at travis-ci

This commit is contained in:
Timothy Warren 2014-08-12 23:40:40 -04:00
parent 27ed3ee040
commit b5eddcd9dc
2 changed files with 1 additions and 2 deletions

View File

@ -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

View File

@ -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');
/*
*---------------------------------------------------------------