source: ammosreader/.gitlab-ci.yml@ 78801cf

guix
Last change on this file since 78801cf was 78801cf, checked in by Enrico Schwass <ennoausberlin@…>, 21 months ago

venv added

  • Property mode set to 100644
File size: 602 bytes
Line 
1image: python:latest
2
3workflow:
4 rules:
5 - if: $CI_COMMIT_BRANCH
6
7pages:
8 stage: deploy
9 script:
10 - python3 -m venv .venv
11 - source .venv/bin/activate
12 - pip install --upgrade numpy pdoc3
13 - pdoc --html ammosreader -o public
14 - mv public/ammosreader public/doc
15 artifacts:
16 paths:
17 - public/doc
18 rules:
19 - if: $CI_COMMIT_BRANCH == "guix"
20
21pytest:
22 stage: test
23 script:
24 - cd tests
25 - pip install -U pytest
26 - pytest --junitxml=report.xml
27 artifacts:
28 when: always
29 reports:
30 junit: tests/report.xml
31 rules:
32 - if: $CI_COMMIT_BRANCH == "guix"
Note: See TracBrowser for help on using the repository browser.