-
Notifications
You must be signed in to change notification settings - Fork 3
/
.gitlab-ci.yml
54 lines (44 loc) · 1.15 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
image: registry.gitlab.com/kaitaistructcompile.py/kaitai_struct_python_docker:latest
stages:
- build
- test
variables:
GIT_DEPTH: "1"
DOCKER_DRIVER: overlay2
SAST_ANALYZER_IMAGE_TAG: latest
SAST_DISABLE_DIND: "true"
SAST_CONFIDENCE_LEVEL: 5
CODECLIMATE_VERSION: latest
include:
- template: SAST.gitlab-ci.yml
- template: Code-Quality.gitlab-ci.yml
build:
tags:
- shared
- linux
stage: build
variables:
GIT_DEPTH: "1"
before_script:
- source ./.ci/before.sh
script:
- python3 setup.py bdist_wheel
- pip3 install --upgrade ./dist/*.whl
- mkdir ./wheels
- mv ./dist/*.whl ./wheels/NTMDTRead-0.CI-py3-none-any.whl
#- coverage run -a --branch --source=NTMDTRead -m pytest --junitxml=./rspec.xml ./tests/test.py
- coverage run -a --branch --source=NTMDTRead ./examples/matplotlibColorMapConvert.py
- coverage report -m || true;
- coverage xml
cache:
paths:
- /usr/local/site-packages
- /usr/local/lib/python*/site-packages
- kaitai_struct_formats
artifacts:
paths:
- wheels
- palletes
reports:
junit: ./rspec.xml
cobertura: ./coverage.xml