forked from sbg/sevenbridges-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
46 lines (39 loc) · 793 Bytes
/
.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
image: python:3.9-slim-buster
stages:
- test
- sonar
.test: &test
stage: test
before_script:
- python --version
- pip install -r requirements-dev.txt
- export PYTHONPATH=$(pwd):$PYTHONPATH
script:
- flake8
- pytest --verbose --cov-config setup.cfg
artifacts:
paths:
- coverage_report/*
# Test with python 3.6
test:3.6:
<<: *test
image: python:3.6-slim-buster
# Test with python 3.7
test:3.7:
<<: *test
image: python:3.7-slim-buster
# Test with python 3.8
test:3.8:
<<: *test
image: python:3.8-slim-buster
# Test with python 3.9
test:3.9:
<<: *test
image: python:3.9-slim-buster
sonar:
stage: sonar
image: emeraldsquad/sonar-scanner:1.0.0
script: infinity sonar scanner
allow_failure: true
dependencies:
- test:3.9