6
0

.gitlab-ci.yml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. webui:
  2. stage: build
  3. image: node:14
  4. cache:
  5. paths:
  6. - webui/node_modules/
  7. before_script:
  8. - cd webui/
  9. - npm install
  10. script:
  11. - npm run build
  12. artifacts:
  13. expire_in: 1 day
  14. paths:
  15. - webui/dist/
  16. tests_3.6:
  17. stage: test
  18. image: python:3.6
  19. variables:
  20. PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
  21. cache:
  22. paths:
  23. - .cache/pip
  24. - env/
  25. before_script:
  26. - python -V
  27. - python -m venv env
  28. - source env/bin/activate
  29. - pip install coverage
  30. script:
  31. - coverage run --source=pycs/ -m unittest discover test/
  32. tests_3.7:
  33. stage: test
  34. image: python:3.7
  35. variables:
  36. PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
  37. cache:
  38. paths:
  39. - .cache/pip
  40. - env/
  41. before_script:
  42. - python -V
  43. - python -m venv env
  44. - source env/bin/activate
  45. - pip install coverage
  46. script:
  47. - coverage run --source=pycs/ -m unittest discover test/
  48. tests_3.8:
  49. stage: test
  50. image: python:3.8
  51. variables:
  52. PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
  53. cache:
  54. paths:
  55. - .cache/pip
  56. - env/
  57. before_script:
  58. - python -V
  59. - python -m venv env
  60. - source env/bin/activate
  61. - pip install coverage
  62. script:
  63. - coverage run --source=pycs/ -m unittest discover test/
  64. tests_3.9:
  65. stage: test
  66. image: python:3.9
  67. variables:
  68. PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
  69. cache:
  70. paths:
  71. - .cache/pip
  72. - env/
  73. before_script:
  74. - python -V
  75. - python -m venv env
  76. - source env/bin/activate
  77. - pip install coverage
  78. script:
  79. - coverage run --source=pycs/ -m unittest discover test/
  80. - coverage report -m