30 lines
625 B
YAML
30 lines
625 B
YAML
---
|
|
|
|
build:
|
|
|
|
tags:
|
|
- ruby
|
|
- stretch
|
|
|
|
variables:
|
|
POSTGRES_DB: debshots_test
|
|
POSTGRES_USER: debshots
|
|
POSTGRES_PASSWORD: ""
|
|
|
|
services:
|
|
- postgres:latest
|
|
|
|
cache:
|
|
key: build-cache
|
|
paths:
|
|
- vendor/
|
|
|
|
script:
|
|
- apt-get update -qy
|
|
- apt-get -o dir::cache::archives="vendor/apt" install -yqq imagemagick git build-essential zlib1g-dev libbz2-dev libpq-dev
|
|
#- 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
|
|
- bundle exec rake test
|
|
|