.gitlab-ci.yml 862 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. build:
  2. stage: build
  3. image: alpine:edge
  4. before_script:
  5. - apk add --no-cache build-base meson samurai linux-headers libconfig-dev scdoc
  6. script:
  7. - meson build --buildtype release --werror
  8. - ninja -C build
  9. - cd build && meson test --no-rebuild
  10. artifacts:
  11. paths:
  12. - build
  13. docs:
  14. stage: build
  15. image: alpine:edge
  16. before_script:
  17. - apk add --no-cache python3 py3-sphinx make
  18. script:
  19. - cd docs
  20. - make html
  21. lint:
  22. stage: test
  23. dependencies:
  24. - build
  25. image: alpine:edge
  26. before_script:
  27. - apk add --no-cache libconfig bash
  28. script:
  29. - bash ./configtest.sh
  30. pages:
  31. stage: deploy
  32. image: alpine:edge
  33. before_script:
  34. - apk add --no-cache python3 py3-sphinx make
  35. script:
  36. - cd docs
  37. - make html
  38. - mv _build/html ../public
  39. artifacts:
  40. paths:
  41. - public
  42. environment: production