diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9bb5adb6ed4fedf57694d6ec7843942c46296269..37a311d1fad25699984977a82d3d525f6d1288a0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -51,13 +51,14 @@ pylint: - make lint allow_failure: true -# run tests -test: +# run unit tests +unittest: tags: [ docker ] stage: test + needs: [ build-testenv ] script: - touch ~/.pycaosdb.ini - - tox -r + - make unittest # Trigger building of server image and integration tests trigger_build: @@ -96,6 +97,7 @@ build-testenv: pages_prepare: &pages_prepare tags: [ cached-dind ] stage: deploy + needs: [ unittest ] only: refs: - /^release-.*$/i diff --git a/Makefile b/Makefile index 192337853d8db8812e14f75fca8986006de82180..0a0888ad0484c0307583e139e65058c38574ed3a 100644 --- a/Makefile +++ b/Makefile @@ -42,3 +42,7 @@ style: lint: pylint --unsafe-load-any-extension=y -d all -e E,F src/caosdb/common .PHONY: lint + +unittest: + tox -r +.PHONY: unittest