Skip to content
Snippets Groups Projects
Commit 05c99019 authored by Rajmund Hruška's avatar Rajmund Hruška
Browse files

Feature: Check deprecation warnings

parent 6372ea56
No related branches found
No related tags found
2 merge requests!50.11,!2Check deprecation warnings
Pipeline #1825 passed with warnings
......@@ -26,15 +26,18 @@ before_script:
stages: # List of stages for jobs, and their order of execution
- test
- check-warnings
- build
- deploy
unit-test-job:
stage: test
script:
- make test
- make test 2>&1 | tee errors.log
artifacts:
when: always
paths:
- errors.log
reports:
junit: nosetests.xml
......@@ -48,6 +51,13 @@ pyflakes-test-job:
script:
- 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
build-job:
stage: build
script:
......
......@@ -120,7 +120,7 @@ pylint-test: FORCE
test: FORCE
@echo "\n${GREEN}*** Checking code with nosetests ***${NC}\n"
@$(NOSETESTS) --with-xunit
@$(PYTHON) -W always::DeprecationWarning -m nose --with-xunit
#-------------------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment