Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement