Commit 5558bfc

mo khan <mo@mokhan.ca>
2017-02-17 19:19:34
export RAILS_ENV and DATABASE_URL for all script.
1 parent e0c9bd2
Changed files (1)
.gitlab-ci.yml
@@ -8,6 +8,8 @@ services:
 
 variables:
   POSTGRES_DB: database_name
+  RAILS_ENV: test
+  DATABASE_URL: "postgresql://postgres:postgres@postgres:5432/$POSTGRES_DB"
 
 cache:
   paths:
@@ -24,9 +26,6 @@ before_script:
   - RAILS_ENV=test bin/rake db:seed
 
 rspec:
-  variables:
-    RAILS_ENV: test
-    DATABASE_URL: "postgresql://postgres:postgres@postgres:5432/$POSTGRES_DB"
   script:
   - bin/rspec