Skip to content

Instantly share code, notes, and snippets.

@lisovskyvlad
Created January 15, 2018 17:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lisovskyvlad/646f905eaac7d51910c90ab659c70523 to your computer and use it in GitHub Desktop.
Save lisovskyvlad/646f905eaac7d51910c90ab659c70523 to your computer and use it in GitHub Desktop.
image: ruby:2.4.3
stages:
- test
services:
- postgres:latest
variables:
POSTGRES_DB: sw-test-db
POSTGRES_USER: sw-user
POSTGRES_PASSWORD: sw-pass
DATABASE_URL: postgres://sw-user:sw-pass@postgres/sw-test-db?pool=5
RAILS_ENV: test
before_script:
- ruby -v
- bundle install --path=cache/bundler --without production --jobs $(nproc) "${FLAGS[@]}"
cache:
untracked: true
paths:
- cache/bundler/
rubocop:
stage: test
script: bundle exec rubocop
rspec:
stage: test
script: bundle exec rspec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment