Guest User

Untitled

a guest
Mar 22nd, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. image: "ruby:2.4"
  2.  
  3. cache:
  4. paths:
  5. - vendor/ruby
  6.  
  7. variables:
  8. RAILS_ENV: test
  9. POSTGRES_DB: test
  10. POSTGRES_USER: test
  11. POSTGRES_PASSWORD: test-password
  12.  
  13. before_script:
  14. - apt-get update -qq && apt-get install -yqq nodejs libpq-dev
  15. - gem install bundler --no-ri --no-rdoc
  16. - bundle install -j $(nproc) --path vendor
  17.  
  18. rails:
  19. services:
  20. - postgres:latest
  21. script:
  22. - bundle exec rake db:create db:schema:load
  23. - bundle exec rspec
  24.  
  25. rubocop:
  26. script:
  27. - bundle exec rubocop
Add Comment
Please, Sign In to add comment