.gitlab-ci.yml.erb 722 B

12345678910111213141516171819202122232425262728293031323334353637
  1. cache:
  2. paths:
  3. - vendor/
  4. stages:
  5. - test
  6. - publish
  7. ._test: &test_template
  8. stage: test
  9. only:
  10. - master
  11. script:
  12. - bundle exec rake --trace
  13. ._build: &alpine_requirements
  14. image: ruby:2.5-alpine
  15. before_script:
  16. - apk add --update build-base libffi-dev libcurl
  17. - gem install ffi
  18. - bundle install -j4 --path vendor
  19. test_alpine:
  20. <<: *alpine_requirements
  21. <<: *test_template
  22. test_defacto:
  23. image: ruby:2.5
  24. before_script:
  25. - bundle install -j4
  26. <<: *test_template
  27. pages: # https://docs.gitlab.com/ce/user/project/pages/introduction.html
  28. <<: *alpine_requirements
  29. stage: publish
  30. script:
  31. - bundle exec rake doc:publish
  32. artifacts:
  33. paths:
  34. - public
  35. only:
  36. - master