-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
53 lines (49 loc) · 1002 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
# 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_scpi
entry:
stage: test
script:
- yaqd-scpi-sensor --version
- yaqd-scpi-sensor --help
- yaqd-scpi-set-continuous --version
- yaqd-scpi-set-continuous --help
- yaqd-scpi-set-discrete --version
- yaqd-scpi-set-discrete --help
traits:
stage: test
script:
- for i in yaqd_scpi/*.avpr; do yaq-traits check $i; done
# deploy stage
flit:
stage: deploy
script:
- flit publish
artifacts:
paths:
- dist/*
only:
- tags