-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
63 lines (57 loc) · 2.55 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
61
62
63
image: pypy:latest
#image: registry.gitlab.com/kolanich/fixed_python:latest
build:
tags:
- shared
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`
- pip3 install --pre --upgrade --user setuptools
- pip3 install --pre --upgrade --user setuptools_scm
- pip3 install --pre --upgrade --user git+https://github.com/pypa/pip.git git+https://github.com/pypa/wheel.git
- pip3 install --pre --upgrade --user git+https://github.com/KOLANICH/sideBySideDiff.py.git
- pip3 install --pre --upgrade --user git+https://github.com/pytest-dev/pytest.git git+https://github.com/pytest-dev/pytest-forked.git
- pip3 install --pre --user coverage git+https://github.com/coveralls-clients/coveralls-python.git@eba54e4d19e40e3907e5fd516f68e8b4dc9e5a31 git+https://github.com/codecov/codecov-python.git@0743daa83647f12ff31b84d07113d2c24c27b924
cache:
paths:
- /usr/local/site-packages
- /usr/local/lib/python*/site-packages
script:
- pypy3 setup.py bdist_wheel
- pip3 install --user --upgrade ./dist/*.whl
- cd ./tests
- coverage run -a --source=lazily --branch -m pytest --junitxml=./rspec.xml --forked ./test*.py
- coverage report -m || true
- coverage xml
- cd ..
- mkdir wheels
- mv ./dist/*.whl ./wheels/lazily-0.CI-py3-none-any.whl
artifacts:
paths:
- wheels
- $PYTHONUSERBASE
reports:
junit: ./rspec.xml
cobertura: ./coverage.xml
checks:
stage: test
tags:
- shared
image: docker:latest
variables:
DOCKER_DRIVER: overlay2
allow_failure: true
services:
- docker:dind
script:
- docker run --env SAST_CONFIDENCE_LEVEL=5 --volume "$PWD:/code" --volume /var/run/docker.sock:/var/run/docker.sock "registry.gitlab.com/gitlab-org/security-products/sast:latest" /app/bin/run /code
#- docker run --env SOURCE_CODE="$PWD" --env CODECLIMATE_VERSION="latest" --volume "$PWD":/code --volume /var/run/docker.sock:/var/run/docker.sock "registry.gitlab.com/gitlab-org/security-products/codequality:latest" /code
#- docker run --env DEP_SCAN_DISABLE_REMOTE_CHECKS="${DEP_SCAN_DISABLE_REMOTE_CHECKS:-false}" --volume "$PWD:/code" --volume /var/run/docker.sock:/var/run/docker.sock "registry.gitlab.com/gitlab-org/security-products/dependency-scanning:latest" /code
artifacts:
reports:
#codequality: gl-code-quality-report.json
sast: gl-sast-report.json
#dependency_scanning: gl-dependency-scanning-report.json