source:
ammosreader/.gitlab-ci.yml
Last change on this file was 5c0f08d, checked in by , 21 months ago | |
---|---|
|
|
File size: 700 bytes |
Rev | Line | |
---|---|---|
[8073839] | 1 | image: python:latest |
[a81ab76] | 2 | |
3 | workflow: | |
4 | rules: | |
5 | - if: $CI_COMMIT_BRANCH | |
6 | ||
[3c396a4] | 7 | pages: |
8 | stage: deploy | |
9 | script: | |
[78801cf] | 10 | - python3 -m venv .venv |
11 | - source .venv/bin/activate | |
[5c0f08d] | 12 | - pip install --upgrade numpy pdoc3 bitstring |
[d41827e] | 13 | - pdoc --html ammosreader -o public |
[576546e] | 14 | - mv public/ammosreader public/doc |
[3c396a4] | 15 | artifacts: |
16 | paths: | |
[576546e] | 17 | - public/doc |
[ca6263a] | 18 | rules: |
19 | - if: $CI_COMMIT_BRANCH == "guix" | |
20 | ||
[3c396a4] | 21 | pytest: |
22 | stage: test | |
23 | script: | |
[2b95c18] | 24 | - python3 -m venv .venv |
25 | - source .venv/bin/activate | |
[5c0f08d] | 26 | - pip install --upgrade numpy pdoc3 pytest bitstring |
[3c396a4] | 27 | - cd tests |
28 | - pytest --junitxml=report.xml | |
29 | artifacts: | |
30 | when: always | |
31 | reports: | |
[bca0f7e] | 32 | junit: tests/report.xml |
[a81ab76] | 33 | rules: |
34 | - if: $CI_COMMIT_BRANCH == "guix" |
Note:
See TracBrowser
for help on using the repository browser.