Skip to content
Snippets Groups Projects
Verified Commit 2537f1b0 authored by Daniel Hornung's avatar Daniel Hornung
Browse files

ENH: Makefile target for testing.

parent 234bd386
No related branches found
No related tags found
1 merge request!46TEST: Better exception message if server sends wrong XML.
...@@ -51,13 +51,14 @@ pylint: ...@@ -51,13 +51,14 @@ pylint:
- make lint - make lint
allow_failure: true allow_failure: true
# run tests # run unit tests
test: unittest:
tags: [ docker ] tags: [ docker ]
stage: test stage: test
needs: [ build-testenv ]
script: script:
- touch ~/.pycaosdb.ini - touch ~/.pycaosdb.ini
- tox -r - make unittest
# Trigger building of server image and integration tests # Trigger building of server image and integration tests
trigger_build: trigger_build:
...@@ -96,6 +97,7 @@ build-testenv: ...@@ -96,6 +97,7 @@ build-testenv:
pages_prepare: &pages_prepare pages_prepare: &pages_prepare
tags: [ cached-dind ] tags: [ cached-dind ]
stage: deploy stage: deploy
needs: [ unittest ]
only: only:
refs: refs:
- /^release-.*$/i - /^release-.*$/i
......
...@@ -42,3 +42,7 @@ style: ...@@ -42,3 +42,7 @@ style:
lint: lint:
pylint --unsafe-load-any-extension=y -d all -e E,F src/caosdb/common pylint --unsafe-load-any-extension=y -d all -e E,F src/caosdb/common
.PHONY: lint .PHONY: lint
unittest:
tox -r
.PHONY: unittest
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment