Merging steps
This commit is contained in:
parent
bfcf4fa071
commit
ceaf3a089b
1 changed files with 8 additions and 27 deletions
|
|
@ -1,16 +1,19 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
stages:
|
|
||||||
- build
|
|
||||||
- test
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
stage: build
|
|
||||||
|
|
||||||
tags:
|
tags:
|
||||||
- ruby
|
- ruby
|
||||||
- stretch
|
- stretch
|
||||||
|
|
||||||
|
variables:
|
||||||
|
POSTGRES_DB: debshots_test
|
||||||
|
POSTGRES_USER: debshots
|
||||||
|
POSTGRES_PASSWORD: ""
|
||||||
|
|
||||||
|
services:
|
||||||
|
- postgres:latest
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
key: build-cache
|
key: build-cache
|
||||||
paths:
|
paths:
|
||||||
|
|
@ -21,28 +24,6 @@ build:
|
||||||
- apt-get -o dir::cache::archives="vendor/apt" install -yqq imagemagick git build-essential zlib1g-dev libbz2-dev libpq-dev postgresql
|
- apt-get -o dir::cache::archives="vendor/apt" install -yqq 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
|
||||||
- RAILS_ENV=test bundle install --path vendor
|
- RAILS_ENV=test bundle install --path vendor
|
||||||
|
|
||||||
test:
|
|
||||||
stage: test
|
|
||||||
|
|
||||||
tags:
|
|
||||||
- ruby
|
|
||||||
- stretch
|
|
||||||
|
|
||||||
cache:
|
|
||||||
key: build-cache
|
|
||||||
paths:
|
|
||||||
- vendor/
|
|
||||||
|
|
||||||
variables:
|
|
||||||
POSTGRES_DB: debshots_test
|
|
||||||
POSTGRES_USER: debshots
|
|
||||||
POSTGRES_PASSWORD: ""
|
|
||||||
|
|
||||||
services:
|
|
||||||
- postgres:latest
|
|
||||||
|
|
||||||
script:
|
|
||||||
- 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
|
||||||
- bundle exec rake test
|
- bundle exec rake test
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue