.gitlab-ci.yml 938 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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.6-alpine
  15. before_script:
  16. - apk add --update build-base libffi-dev libcurl
  17. - gem install ffi bundler
  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. - gem install bundler
  26. - bundle install -j4
  27. <<: *test_template
  28. test_back:
  29. image: ruby:2.4-alpine
  30. before_script:
  31. - apk add --update build-base libffi-dev libcurl
  32. - gem install ffi bundler
  33. - bundle install -j4
  34. <<: *test_template
  35. pages: # https://docs.gitlab.com/ce/user/project/pages/introduction.html
  36. <<: *alpine_requirements
  37. stage: publish
  38. script:
  39. - bundle exec rake doc:publish
  40. artifacts:
  41. paths:
  42. - public
  43. only:
  44. - master