Repository navigation
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
68 lines (58 loc) · 1.87 KB
/
Copy path.gitlab-ci.yml
File metadata and controls
68 lines (58 loc) · 1.87 KB
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
#image: pypy:latest
image: registry.gitlab.com/kolanich-subgroups/docker-images/fixed_python:latest
stages:
- dependencies
- build
- test
- trigger
variables:
DOCKER_DRIVER: overlay2
SAST_ANALYZER_IMAGE_TAG: latest
SAST_DISABLE_DIND: "true"
include:
- template: SAST.gitlab-ci.yml
#- template: DAST.gitlab-ci.yml
#- template: License-Management.gitlab-ci.yml
#- template: Container-Scanning.gitlab-ci.yml
#- template: Dependency-Scanning.gitlab-ci.yml
- template: Code-Quality.gitlab-ci.yml
build:
tags:
- shared
- linux
stage: build
variables:
GIT_DEPTH: "1"
PYTHONUSERBASE: ${CI_PROJECT_DIR}/python_user_packages
before_script:
- export PYTHON_MODULES_DIR=${PYTHONUSERBASE}/lib/python3.7
- export EXECUTABLE_DEPENDENCIES_DIR=${PYTHONUSERBASE}/bin
- export PATH="$PATH:$EXECUTABLE_DEPENDENCIES_DIR" # don't move into `variables` any of them, it is unordered
- mkdir ./wheels
- pip install --upgrade --pre --user git+https://gitlab.com/KOLANICH/pantarei.py.git git+https://gitlab.com/KOLANICH/MempipedPath.py.git
script:
- python3 ./setup.py bdist_wheel
- mv ./dist/*.whl ./wheels/File2Package-0.CI_python-py3-none-any.whl
- pip3 install --upgrade --pre --user ./wheels/File2Package-0.CI_python-py3-none-any.whl
- coverage run --source=File2Package --branch -m pytest --junitxml=./rspec.xml ./tests/tests.py
- coverage report -m
- coverage xml
coverage: /^TOTAL\\s+.+?(\\d{1,3}%)$/
cache:
paths:
- $PYTHONUSERBASE
artifacts:
paths:
- wheels
reports:
junit: ./rspec.xml
cobertura: ./coverage.xml
# TODO: What we'll we do when more backends are available? We need a way to triger a single job only!
test_dpkg_backend:
only:
- master
stage: trigger
allow_failure: true
trigger:
project: File2Package.py/File2Package.backend.dpkg
strategy: depend