Created
January 15, 2018 17:17
-
-
Save lisovskyvlad/646f905eaac7d51910c90ab659c70523 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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