Skip to content

Instantly share code, notes, and snippets.

@shved270189
Created April 16, 2018 15:02
Show Gist options
  • Save shved270189/87c005f6a526c4283f3a9680cf25b047 to your computer and use it in GitHub Desktop.
Save shved270189/87c005f6a526c4283f3a9680cf25b047 to your computer and use it in GitHub Desktop.
image: "ruby:2.4.1"
services:
- postgres:latest
variables:
POSTGRES_USER: runner
POSTGRES_PASSWORD: password
before_script:
- apt-get update -qq && apt-get install -y -qq nodejs libpq-dev
- ruby -v
- which ruby
- gem install bundler --no-ri --no-rdoc
- bundle install --jobs $(nproc) "${FLAGS[@]}" --without production
- cp config/database.yml.gitlab config/database.yml
- bundle exec rake db:create db:migrate
rspec:
script:
- bundle exec rspec spec/
rubocop:
script:
- bundle exec rubocop -c .rubocop.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment