.gitlab-ci.yml 731 B

12345678910111213141516171819202122232425262728293031323334
  1. build:
  2. stage: test
  3. image: alpine:edge
  4. before_script:
  5. - apk add --no-cache build-base meson samurai tiff-dev linux-headers scdoc
  6. script:
  7. - meson build --buildtype release --werror
  8. - ninja -C build
  9. - cd build && meson test --no-rebuild || cat meson-logs/testlog.txt
  10. docs:
  11. stage: test
  12. image: alpine:edge
  13. before_script:
  14. - apk add --no-cache python3 py3-sphinx make
  15. script:
  16. - cd docs
  17. - make html
  18. pages:
  19. stage: deploy
  20. image: alpine:edge
  21. before_script:
  22. - apk add --no-cache python3 py3-sphinx make
  23. script:
  24. - cd docs
  25. - make html
  26. - mv _build/html ../public
  27. artifacts:
  28. paths:
  29. - public
  30. environment: production
  31. rules:
  32. - if: $CI_COMMIT_BRANCH == "master"