forked from yaq-project/yaqd-pi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
49 lines (45 loc) · 834 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
# configure
image: python:latest
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" # cache on project level
cache:
paths:
- .cache/pip
- venv/
# common to all scripts
before_script:
- python -V
- pip install -U virtualenv
- virtualenv venv
- source venv/bin/activate
- pip install -U flit
- pip install -U pytest
- pip install -U mypy
- pip install -U yaqc
- pip install -U yaqd-core
- pip install -U yaq-traits
- pip install .
# test stage
mypy:
stage: test
script:
- mypy yaqd_pi
entry:
stage: test
script:
- yaqd-pi-proem --version
- yaqd-pi-proem -h
traits:
stage: test
script:
- for i in yaqd_pi/*.avpr; do yaq-traits check $i; done
# deploy stage
flit:
stage: deploy
script:
- flit publish
artifacts:
paths:
- dist/*
only:
- tags