.gitlab-ci.yml 1.6 KB

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