-
Notifications
You must be signed in to change notification settings - Fork 3
/
.gitlab-ci.yml
69 lines (65 loc) · 1.53 KB
/
.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
61
62
63
64
65
66
67
68
69
# 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 . --no-build-isolation
# test stage
mypy:
stage: test
script:
- mypy yaqd_thorlabs
entry:
stage: test
script:
- yaqd-thorlabs-bsc201 --version
- yaqd-thorlabs-bsc201 -h
- yaqd-thorlabs-bsc203 --version
- yaqd-thorlabs-bsc203 -h
- yaqd-thorlabs-k10cr1 --version
- yaqd-thorlabs-k10cr1 -h
- yaqd-thorlabs-kdc101 --version
- yaqd-thorlabs-kdc101 -h
- yaqd-thorlabs-kst101 --version
- yaqd-thorlabs-kst101 -h
- yaqd-thorlabs-lts150 --version
- yaqd-thorlabs-lts150 -h
- yaqd-thorlabs-lts300 --version
- yaqd-thorlabs-lts300 -h
- yaqd-thorlabs-mpc320 --version
- yaqd-thorlabs-mpc320 -h
- yaqd-thorlabs-ell18 --version
- yaqd-thorlabs-ell18 -h
- yaqd-thorlabs-pax1000 --version
- yaqd-thorlabs-pax1000 -h
- yaqd-thorlabs-pm-triggered --version
- yaqd-thorlabs-pm-triggered -h
traits:
stage: test
script:
- for i in yaqd_thorlabs/*.avpr; do yaq-traits check $i; done
# deploy stage
flit:
stage: deploy
script:
- flit publish
artifacts:
paths:
- dist/*
only:
- tags