-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
47 lines (35 loc) · 1.22 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
include:
- project: "GBC08/development/devices/shared/devicescripts/bu83_python_pipeline"
ref: 0.13.0
file: "build-template.yaml"
variables:
PROJECT_NAME: "sick_scan_rest_client"
ENABLE_BUILD_PACKAGE: "True"
ENABLE_PYCODESTYLE: "False"
ENABLE_PYLINT: "False" # We don't want to include pylint because of license issues.
ENABLE_PYTEST: "False" # We don't have any tests yet
ENABLE_PYTEST_WINDOWS: "False" # We don't have any tests yet
ENABLE_DEPLOY_TO_ARTIFACTORY: "True"
ENABLE_GENERATE_DOCS: "False"
ENABLE_RELEASE_DOCS: "False"
POETRY_VERSION: 1.5.1
.setup_pypi_mirror:
before_script:
- pip install poetry==${POETRY_VERSION}
- poetry source add pypi-mirror https://deagxartifactory.sickcn.net/artifactory/api/pypi/pypi/simple --priority primary
- poetry lock --no-update
build_package:
before_script:
- !reference [.setup_pypi_mirror, before_script]
pycodestyle:
before_script:
- !reference [.setup_pypi_mirror, before_script]
pylint:
before_script:
- !reference [.setup_pypi_mirror, before_script]
pytest_linux:
before_script:
- !reference [.setup_pypi_mirror, before_script]
pytest_windows:
before_script:
- !reference [.setup_pypi_mirror, before_script]