Skip to content
Snippets Groups Projects
Commit 77644ff0 authored by Lukas Hennig's avatar Lukas Hennig
Browse files

Merge branch 'test-python-3.7' into 'master'

Add python 3.7 test and coverage

See merge request !36
parents 4bb45850 83c8dc4c
Branches master
No related tags found
1 merge request!36Add python 3.7 test and coverage
...@@ -32,24 +32,31 @@ cache: ...@@ -32,24 +32,31 @@ cache:
make install-dev make install-dev
test: test:
image: docker.km3net.de/base/python:3.6 image: docker.km3net.de/base/python:$PYTHON_VERSION
stage: test stage: test
script: script:
- *virtualenv_definition - *virtualenv_definition
- pip list - pip list
- make test - make test
parallel:
matrix:
- PYTHON_VERSION: "3.6"
- PYTHON_VERSION: "3.7"
coverage: coverage:
image: docker.km3net.de/base/python:3.6 image: docker.km3net.de/base/python:$PYTHON_VERSION
stage: coverage stage: coverage
script: script:
- *virtualenv_definition - *virtualenv_definition
- "make test-cov|grep TOTAL| awk '{printf \"COVERAGE: %.2f%%\", (1-$3/$2)*100 }'" - "make test-cov | grep TOTAL | awk '{printf \"COVERAGE: %.2f%%\", (1-$3/$2)*100 }'"
coverage: '/COVERAGE:\s*([0-9]*\.[0-9]*%)/' coverage: '/COVERAGE:\s*([0-9]*\.[0-9]*%)/'
artifacts: parallel:
paths: matrix:
- reports/coverage - PYTHON_VERSION: "3.6"
- PYTHON_VERSION: "3.7"
artifacts:
paths:
- reports/coverage
pages: pages:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment