Advertisement
AndriiTrebukhin

.gitlab-ci.yml

Sep 6th, 2017
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.56 KB | None | 0 0
  1. image: "ruby:2.4.1"
  2.  
  3. services:
  4.  - postgres:latest
  5.  
  6. variables:
  7.   POSTGRES_USER: runner
  8.   POSTGRES_PASSWORD: password
  9.  
  10. before_script:
  11.  - apt-get update -qq && apt-get install -y -qq nodejs libpq-dev
  12.   - ruby -v
  13.   - which ruby
  14.   - gem install bundler --no-ri --no-rdoc
  15.   - bundle install --jobs $(nproc) "${FLAGS[@]}" --without production
  16.   - cp config/database.yml.gitlab config/database.yml
  17.   - bundle exec rake db:create db:migrate
  18.  
  19. rspec:
  20.   script:
  21.    - bundle exec rspec spec/
  22.  
  23. rubocop:
  24.   script:
  25.    - bundle exec rubocop -c .rubocop.yml
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement