forked from Budapest-Quantum-Computing-Group/piquasso
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
60 lines (53 loc) · 969 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
image: python:3.6
before_script:
- pip install poetry
stages:
- test
- publish
- docs
test-py36:
stage: test
image: python:3.6
script:
- pip install tox
- tox -e py36
artifacts:
reports:
cobertura: coverage.xml
expire_in: 15 days
test-py37:
stage: test
image: python:3.7
script:
- pip install tox
- tox -e py37
only:
- web
test-py38:
stage: test
image: python:3.8
script:
- pip install tox
- tox -e py38
only:
- web
publish:
stage: publish
script:
- poetry config repositories.gitlab https://gitlab.inf.elte.hu/api/v4/projects/73/packages/pypi
- poetry build
- poetry publish --repository gitlab -u gitlab-ci-token -p ${CI_JOB_TOKEN}
only:
- web
docs:
stage: docs
script:
- apt update
- apt-get install libeigen3-dev
- poetry install
- cd docs
- poetry run make html_all
artifacts:
paths:
- docs/_build
expire_in: 30 days