debshots/.gitlab-ci.yml
Christoph Haas 5aa839bbf3 Yaml fix
2018-08-14 16:38:58 +02:00

25 lines
564 B
YAML

---
test:
stage: test
variables:
POSTGRES_DB: test_db
POSTGRES_USER: runner
POSTGRES_PASSWORD: ""
tags:
- stretch
services:
- postgres:latest
before_script:
- apt-get update -qy
- 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
- RAILS_ENV=test bundle install --path /cache
- cp config/database.yml.gitlab config/database.yml
- RAILS_ENV=test bundle exec rake db:create db:schema:load
script:
- bundle exec rake test