Advertisement
Guest User

Untitled

a guest
Aug 3rd, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. stages:
  2. - test
  3. - build
  4.  
  5. variables:
  6. DB_HOST: postgres
  7. DB_PASS: postgres
  8. DB_USER: postgres
  9.  
  10. brakeman:
  11. stage: test
  12. image: ruby:2.4.1
  13. before_script:
  14. - bundle install
  15. script:
  16. - bundle exec brakeman
  17.  
  18. rubocop:
  19. stage: test
  20. image: ruby:2.4.1
  21. before_script:
  22. - bundle install
  23. script:
  24. - bundle exec rubocop
  25.  
  26. rspec:
  27. stage: test
  28. image: ruby:2.4.1
  29. services:
  30. - postgres:latest
  31. before_script:
  32. - bundle install
  33. - rake db:create RAILS_ENV=test
  34. - rake db:schema:load RAILS_ENV=test
  35. script:
  36. - bundle exec rspec
  37.  
  38. build:
  39. stage: build
  40. only:
  41. - master
  42. image: docker:latest
  43. services:
  44. - docker:dind
  45. script:
  46. - docker build .
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement