.gitlab-ci.yml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. ---
  2. .template: &template
  3. except:
  4. - deploy@ftp-team/dak
  5. test buster:
  6. <<: *template
  7. image: debian:buster
  8. parallel: 3
  9. script: debian/run-ci --with-coverage
  10. artifacts:
  11. paths:
  12. - output
  13. test bullseye:
  14. <<: *template
  15. image: debian:bullseye
  16. parallel: 3
  17. script: debian/run-ci --with-coverage
  18. artifacts:
  19. paths:
  20. - output
  21. allow_failure: true
  22. flake8:
  23. <<: *template
  24. image: debian:bullseye
  25. script:
  26. - apt-get update
  27. - apt-get install -y flake8
  28. - flake8
  29. get coverage:
  30. <<: *template
  31. image: debian:buster
  32. stage: coverage
  33. dependencies:
  34. - test buster
  35. script:
  36. - debian/run-coverage
  37. artifacts:
  38. paths:
  39. - coverage
  40. - logs
  41. contributors:
  42. image: debian:bullseye
  43. stage: deploy
  44. dependencies: []
  45. script:
  46. - apt update && apt install -y git python3-debiancontributors
  47. - dc-tool --mine config/debian/contributor.patch --auth-token "@$DC_TOKEN" --source ftp.debian.org --post
  48. allow_failure: true
  49. only:
  50. - master@ftp-team/dak
  51. pages:
  52. image: debian:buster
  53. script:
  54. - apt-get update
  55. - apt-get install -y python-epydoc
  56. - mkdir -p public/epydoc
  57. - epydoc -q --html --graph all --css white -n DAK -o public/epydoc --include-log --show-imports dak daklib dakweb
  58. - mv coverage public/coverage
  59. stage: deploy
  60. dependencies:
  61. - get coverage
  62. artifacts:
  63. paths:
  64. - public
  65. only:
  66. - master
  67. stages:
  68. - test
  69. - coverage
  70. - deploy