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

Merge branch 'hruska-feature-deprecation-warnings' into 'devel'

Show deprecation warnings in CI/CD

See merge request 709/warden/typedcols!3
parents eb969083 9ec7f311
No related branches found
No related tags found
2 merge requests!60.1.14,!3Show deprecation warnings in CI/CD
Pipeline #1767 passed with warnings
...@@ -26,15 +26,18 @@ before_script: ...@@ -26,15 +26,18 @@ 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 stage: test
script: script:
- make test - make test 2>&1 | tee errors.log
artifacts: artifacts:
when: always when: always
paths:
- errors.log
reports: reports:
junit: nosetests.xml junit: nosetests.xml
...@@ -48,6 +51,13 @@ pyflakes-test-job: ...@@ -48,6 +51,13 @@ 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
build-job: build-job:
stage: build stage: build
script: script:
......
...@@ -158,7 +158,7 @@ pylint-test: FORCE ...@@ -158,7 +158,7 @@ pylint-test: FORCE
test: FORCE test: FORCE
@echo "\n${GREEN}*** Checking code with nosetests ***${NC}\n" @echo "\n${GREEN}*** Checking code with nosetests ***${NC}\n"
@nosetests test_typedcols.py --with-xunit @python3 -W always::DeprecationWarning -m nose test_typedcols.py --with-xunit
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment