Browse Source

Another attempt at travis-ci

Timothy J. Warren 3 years ago
parent
commit
b5eddcd9dc
2 changed files with 1 additions and 2 deletions
  1. 0 1
      .travis.yml
  2. 1 1
      application/third_party/CIUnit/bootstrap_phpunit.php

+ 0 - 1
.travis.yml View File

@@ -16,7 +16,6 @@ before_script:
16 16
   - sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS todo_test;' -U postgres; fi"
17 17
   - sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'create database todo_test;' -U postgres; fi"
18 18
   - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS todo_test;'; fi";
19
-  - export ENVRIONMENT=testing-${DB}
20 19
 
21 20
 script:
22 21
   - vendor/bin/phinx migrate -e testing -c tests/phinx/$DB.yml

+ 1 - 1
application/third_party/CIUnit/bootstrap_phpunit.php View File

@@ -32,7 +32,7 @@ exit;
32 32
  * NOTE: If you change these, also change the error_reporting() code below
33 33
  *
34 34
  */
35
-	$env_part = (isset($_ENV['DB'])) ? $_ENV['DB'] : '';
35
+	$env_part = (getenv('DB')) ? getenv('DB') : '';
36 36
 	define('ENVIRONMENT', ( ! empty($env_part)) ? "testing-{$env_part}" : 'testing');
37 37
 /*
38 38
  *---------------------------------------------------------------