.gitlab-ci.yml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. key: "$CI_JOB_NAME"
  23. paths:
  24. - .cache/pip
  25. - env/
  26. before_script:
  27. - python -V
  28. - python -m venv env
  29. - source env/bin/activate
  30. - pip install coverage
  31. script:
  32. - coverage run --source=pycs/ -m unittest discover test/
  33. tests_3.7:
  34. stage: test
  35. image: python:3.7
  36. variables:
  37. PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
  38. cache:
  39. key: "$CI_JOB_NAME"
  40. paths:
  41. - .cache/pip
  42. - env/
  43. before_script:
  44. - python -V
  45. - python -m venv env
  46. - source env/bin/activate
  47. - pip install coverage
  48. script:
  49. - coverage run --source=pycs/ -m unittest discover test/
  50. tests_3.8:
  51. stage: test
  52. image: python:3.8
  53. variables:
  54. PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
  55. cache:
  56. key: "$CI_JOB_NAME"
  57. paths:
  58. - .cache/pip
  59. - env/
  60. before_script:
  61. - python -V
  62. - python -m venv env
  63. - source env/bin/activate
  64. - pip install coverage
  65. script:
  66. - coverage run --source=pycs/ -m unittest discover test/
  67. tests_3.9:
  68. stage: test
  69. image: python:3.9
  70. variables:
  71. PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
  72. cache:
  73. key: "$CI_JOB_NAME"
  74. paths:
  75. - .cache/pip
  76. - env/
  77. before_script:
  78. - python -V
  79. - python -m venv env
  80. - source env/bin/activate
  81. - pip install coverage
  82. script:
  83. - coverage run --source=pycs/ -m unittest discover test/
  84. - coverage report -m