Trying seperate stages
This commit is contained in:
parent
fea4c61c2b
commit
b509e03dc1
1 changed files with 19 additions and 10 deletions
|
|
@ -1,18 +1,16 @@
|
||||||
---
|
---
|
||||||
test:
|
|
||||||
stage: test
|
|
||||||
|
|
||||||
variables:
|
stages:
|
||||||
POSTGRES_DB: debshots_test
|
- build
|
||||||
POSTGRES_USER: debshots
|
- test
|
||||||
POSTGRES_PASSWORD: ""
|
|
||||||
tags:
|
tags:
|
||||||
- stretch
|
- stretch
|
||||||
|
|
||||||
services:
|
build:
|
||||||
- postgres:latest
|
stage: build
|
||||||
|
|
||||||
before_script:
|
script:
|
||||||
- apt-get update -qy
|
- apt-get update -qy
|
||||||
- apt-get install -y ruby ruby-dev imagemagick git build-essential zlib1g-dev libbz2-dev libpq-dev postgresql
|
- apt-get install -y ruby ruby-dev imagemagick git build-essential zlib1g-dev libbz2-dev libpq-dev postgresql
|
||||||
- gem install bundler --no-ri --no-rdoc
|
- gem install bundler --no-ri --no-rdoc
|
||||||
|
|
@ -20,6 +18,17 @@ test:
|
||||||
- cp config/database.yml.gitlab config/database.yml
|
- cp config/database.yml.gitlab config/database.yml
|
||||||
- RAILS_ENV=test bundle exec rake db:create db:schema:load
|
- RAILS_ENV=test bundle exec rake db:create db:schema:load
|
||||||
|
|
||||||
|
test:
|
||||||
|
stage: test
|
||||||
|
|
||||||
|
variables:
|
||||||
|
POSTGRES_DB: debshots_test
|
||||||
|
POSTGRES_USER: debshots
|
||||||
|
POSTGRES_PASSWORD: ""
|
||||||
|
|
||||||
|
services:
|
||||||
|
- postgres:latest
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- bundle exec rake test
|
- bundle exec rake test
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue