This repository has been archived by the owner on Oct 12, 2023. It is now read-only.
generated from KOLANICH/python_project_boilerplate.py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
59 lines (51 loc) · 1.84 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
image: pypy:latest
#image: registry.gitlab.com/kolanich-subgroups/docker-images/fixed_python:latest
#image: registry.gitlab.com/kolanich-subgroups/docker-images/python_graal_docker:latest
variables:
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"
PYTHONUSERBASE: ${CI_PROJECT_DIR}/python_user_packages
before_script:
- export PATH="$PATH:$PYTHONUSERBASE/bin" # don't move into `variables`
- git clone https://github.com/pypa/setuptools.git
- cd setuptools
- pypy3 ./bootstrap.py
- pypy3 ./setup.py bdist_wheel
- pip install --upgrade --pre ./dist/*.whl
- cd ..
- rm -rf ./setuptools
- pip3 install --user --pre --upgrade git+https://github.com/pypa/setuptools_scm.git
- pip3 install --user --pre --upgrade git+https://github.com/pypa/pip.git git+https://github.com/pypa/wheel.git
- pip3 install --user --pre --upgrade pep517
- pip3 install --pre --upgrade --user git+https://github.com/pytest-dev/pytest.git
script:
- pypy3 -m pep517.build .
#- pypy3 ./setup.py bdist_wheel
- mv ./dist/*.whl ./dist/RichConsole-0.CI-py3-none-any.whl
- pip3 install --user --upgrade --pre "./dist/RichConsole-0.CI-py3-none-any.whl[colorama,plumbum,colored]"
- coverage run -a --branch --source=RichConsole -m pytest --junitxml=./rspec.xml ./tests/tests.py
- coverage run -a --branch --source=RichConsole -m RichConsole
- coverage xml
cache:
paths:
- /usr/local/site-packages
- /usr/local/lib/python*/site-packages
artifacts:
paths:
- dist
reports:
junit: ./rspec.xml
cobertura: ./coverage.xml