1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- webui:
- stage: build
- image: node:14
- cache:
- paths:
- - webui/node_modules/
- before_script:
- - cd webui/
- - npm install
- script:
- - npm run build
- artifacts:
- expire_in: 1 day
- paths:
- - webui/dist/
- tests_3.6:
- stage: test
- image: python:3.6
- variables:
- PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
- cache:
- key: "$CI_JOB_NAME"
- paths:
- - .cache/pip
- - env/
- before_script:
- - python -V
- - python -m venv env
- - source env/bin/activate
- - pip install coverage
- script:
- - coverage run --source=pycs/ -m unittest discover test/
- tests_3.7:
- stage: test
- image: python:3.7
- variables:
- PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
- cache:
- key: "$CI_JOB_NAME"
- paths:
- - .cache/pip
- - env/
- before_script:
- - python -V
- - python -m venv env
- - source env/bin/activate
- - pip install coverage
- script:
- - coverage run --source=pycs/ -m unittest discover test/
- tests_3.8:
- stage: test
- image: python:3.8
- variables:
- PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
- cache:
- key: "$CI_JOB_NAME"
- paths:
- - .cache/pip
- - env/
- before_script:
- - python -V
- - python -m venv env
- - source env/bin/activate
- - pip install coverage
- script:
- - coverage run --source=pycs/ -m unittest discover test/
- tests_3.9:
- stage: test
- image: python:3.9
- variables:
- PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
- cache:
- key: "$CI_JOB_NAME"
- paths:
- - .cache/pip
- - env/
- before_script:
- - python -V
- - python -m venv env
- - source env/bin/activate
- - pip install coverage
- script:
- - coverage run --source=pycs/ -m unittest discover test/
- - coverage report -m
|