From 32b27276cf36cb14da391155d69a397710ed2c95 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Tue, 14 Aug 2018 18:20:30 +0200 Subject: [PATCH] Moved database steps to second step --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c0a7fb3..43e3386 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,8 +22,6 @@ build: - apt-get install -y imagemagick git build-essential zlib1g-dev libbz2-dev libpq-dev postgresql #- gem install bundler --no-ri --no-rdoc - RAILS_ENV=test bundle install --path vendor - - cp config/database.yml.gitlab config/database.yml - - RAILS_ENV=test bundle exec rake db:create db:schema:load test: stage: test @@ -42,4 +40,6 @@ test: script: - bundle exec rake test + - cp config/database.yml.gitlab config/database.yml + - RAILS_ENV=test bundle exec rake db:create db:schema:load