forked from iqm-finland/KQCircuits
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
99 lines (92 loc) · 2.1 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
default:
image: gitlab.iqm.fi:5005/iqm/qe/kqcircuits:kqc-test-02
cache:
key: "$CI_PROJECT_ID-$CI_COMMIT_REF_SLUG"
paths:
- .pip-cache
before_script:
- ci/init_kqc.sh
tags:
- docker
test:
stage: test
parallel:
matrix:
- KLAYOUT_VERSION: [0.26.7, 0.26.12, 1.latest]
script:
- pip install --force-reinstall "klayout<=$KLAYOUT_VERSION"
- tox -e matrix
artifacts:
reports:
junit: test_report.xml
only:
- master
- merge_requests
- tags
static_analysis:
stage: test
script:
- pip install pylint-gitlab
- >
tox -e static_analysis --
--output-format=pylint_gitlab.GitlabCodeClimateReporter
--output=codeclimate.json
artifacts:
reports:
codequality: codeclimate.json
when: always
only:
- master
- merge_requests
- tags
verify_documentation:
stage: test
script:
- Xvfb :99 -screen 0 640x480x24 -nolisten tcp &
- cd docs
- make html SPHINXOPTS="-W --keep-going"
only:
- merge_requests
check_confidential_strings:
stage: test
script:
- bash check_files_for_strings.sh "$KQC_CONFIDENTIAL_STRINGS"
only:
refs:
- merge_requests
variables:
- $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"
check_copyright_headers:
stage: test
script:
- >
python check_copyright_headers.py --exclude-paths
klayout_package/python/kqcircuits/_static_version.py
klayout_package/python/kqcircuits/_version.py
only:
refs:
- merge_requests
variables:
- $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"
check_license:
stage: test
script:
- sha256sum -c license_manifest.txt
only:
refs:
- merge_requests
variables:
- $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"
pages:
stage: deploy
script:
- Xvfb :99 -screen 0 640x480x24 -nolisten tcp &
- cd docs
- make html SPHINXOPTS="-W --keep-going"
- find _build/html -name "*.html" -exec sed -i 's#github.com/iqm-finland/KQCircuits#$KQC_REPOSITORY_STRING#g' {} +
- mv _build/html ../public
artifacts:
paths:
- public
only:
- master