Skip to content
Snippets Groups Projects

0.1.14

Files

+ 74
4
# Official language image. Look for the different tagged releases at:
# Official language image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/python/tags/
# https://hub.docker.com/r/library/python/tags/
image: ${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/python:3.6
image: ${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/python:latest
# Change pip's cache directory to be inside the project directory since we can
# Change pip's cache directory to be inside the project directory since we can
# only cache local items.
# only cache local items.
@@ -15,7 +15,6 @@ variables:
@@ -15,7 +15,6 @@ variables:
cache:
cache:
paths:
paths:
- .cache/pip
- .cache/pip
- venv/
before_script:
before_script:
- pip install virtualenv
- pip install virtualenv
@@ -26,14 +25,57 @@ before_script:
@@ -26,14 +25,57 @@ before_script:
stages: # List of stages for jobs, and their order of execution
stages: # List of stages for jobs, and their order of execution
- test
- test
 
- check-warnings
- build
- build
- deploy
- deploy
unit-test-job:
unit-test-job:
 
stage: test
 
script:
 
- make test 2>&1 | tee errors.log
 
artifacts:
 
when: always
 
paths:
 
- errors.log
 
reports:
 
junit: nose2-junit.xml
 
 
unit-test-2.7-job:
 
image: ${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/python:2.7
stage: test
stage: test
script:
script:
- make test
- make test
 
unit-test-3.7-job:
 
image: ${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/python:3.7
 
stage: test
 
script:
 
- make test 2>&1 | tee errors-3.7.log
 
artifacts:
 
when: always
 
paths:
 
- errors-3.7.log
 
 
unit-test-3.8-job:
 
image: ${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/python:3.8
 
stage: test
 
script:
 
- make test 2>&1 | tee errors-3.8.log
 
artifacts:
 
when: always
 
paths:
 
- errors-3.8.log
 
 
unit-test-3.9-job:
 
image: ${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/python:3.9
 
stage: test
 
script:
 
- make test 2>&1 | tee errors-3.9.log
 
artifacts:
 
when: always
 
paths:
 
- errors-3.9.log
 
pylint-test-job:
pylint-test-job:
stage: test
stage: test
script:
script:
@@ -44,6 +86,34 @@ pyflakes-test-job:
@@ -44,6 +86,34 @@ pyflakes-test-job:
script:
script:
- make pyflakes
- make pyflakes
 
check-deprecation-warnings:
 
before_script: []
 
stage: check-warnings
 
script:
 
- "if [[ $(grep DeprecationWarning errors.log) ]]; then cat errors.log; exit 1; fi"
 
allow_failure: true
 
 
check-deprecation-warnings-3.7:
 
before_script: []
 
stage: check-warnings
 
script:
 
- "if [[ $(grep DeprecationWarning errors-3.7.log) ]]; then cat errors-3.7.log; exit 1; fi"
 
allow_failure: true
 
 
check-deprecation-warnings-3.8:
 
before_script: []
 
stage: check-warnings
 
script:
 
- "if [[ $(grep DeprecationWarning errors-3.8.log) ]]; then cat errors-3.8.log; exit 1; fi"
 
allow_failure: true
 
 
check-deprecation-warnings-3.9:
 
before_script: []
 
stage: check-warnings
 
script:
 
- "if [[ $(grep DeprecationWarning errors-3.9.log) ]]; then cat errors-3.9.log; exit 1; fi"
 
allow_failure: true
 
build-job:
build-job:
stage: build
stage: build
script:
script:
@@ -105,4 +175,4 @@ pages:
@@ -105,4 +175,4 @@ pages:
- public
- public
only:
only:
- master
- master
- devel
- devel
\ No newline at end of file
Loading