Moved database steps to second step

This commit is contained in:
Christoph Haas 2018-08-14 18:20:30 +02:00
parent 26aa896b15
commit 32b27276cf

View file

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