-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
60 lines (49 loc) · 1.92 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
# GitLab CI in conjunction with GitLab Runner can use Docker Engine to test and build any application.
# Docker, when used with GitLab CI, runs each job in a separate and isolated container using the predefined image that is set up in .gitlab-ci.yml.
# In this case we use the latest python docker image to build and test this project.
image: $SKA_K8S_TOOLS_DOCKER_BUILDER_IMAGE
variables:
CHARTS_TO_PUBLISH: ska-mid-dish-manager
GIT_SUBMODULE_STRATEGY: recursive
stages:
- lint
- build
- test
- publish
- pages
- scan
# Standardised included jobs
include:
# Helm Chart linting and Publish
- project: 'ska-telescope/templates-repository'
file: 'gitlab-ci/includes/helm-chart.gitlab-ci.yml'
# Python packages build,lint, test and publish
- project: 'ska-telescope/templates-repository'
file: 'gitlab-ci/includes/python.gitlab-ci.yml'
# OCI images build and publish
- project: 'ska-telescope/templates-repository'
file: 'gitlab-ci/includes/oci-image.gitlab-ci.yml'
# k8s test
- project: 'ska-telescope/templates-repository'
file: 'gitlab-ci/includes/k8s-test-runner.gitlab-ci.yml'
# Docs pages
- project: 'ska-telescope/templates-repository'
file: 'gitlab-ci/includes/docs.gitlab-ci.yml'
# Create Gitlab CI badges from CI metrics
- project: 'ska-telescope/templates-repository'
file: 'gitlab-ci/includes/finaliser.gitlab-ci.yml'
# Create a release
- project: 'ska-telescope/templates-repository'
file: 'gitlab-ci/includes/release.gitlab-ci.yml'
#mypy job
mypy:
stage: lint
script:
- pip install mypy
- mypy --ignore-missing-imports --config-file mypy.ini
src/ska_mid_dish_manager/component_managers/ds_cm.py
src/ska_mid_dish_manager/component_managers/spf_cm.py
src/ska_mid_dish_manager/component_managers/spfrx_cm.py
src/ska_mid_dish_manager/models/dish_mode_model.py
src/ska_mid_dish_manager/models/dish_state_transition.py
allow_failure: true