Created
April 16, 2018 15:02
-
-
Save shved270189/87c005f6a526c4283f3a9680cf25b047 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.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