]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
pytests: execute tests in CI
authorTomas Krizek <tomas.krizek@nic.cz>
Mon, 12 Nov 2018 16:29:52 +0000 (17:29 +0100)
committerTomas Krizek <tomas.krizek@nic.cz>
Tue, 4 Dec 2018 16:13:42 +0000 (17:13 +0100)
.gitlab-ci.yml
ci/pytests/run.sh [new file with mode: 0755]

index 950e8da7bdc0b7ad0df4bd71e69779b20b80f4e4..9d42b419a0a0bacd75641fb653322645b91a0cf5 100644 (file)
@@ -280,6 +280,20 @@ pytests:lint:
     - linux
     - amd64
 
+pytests:run:
+  stage: test
+  dependencies:
+    - build:linux:amd64
+  except:
+    - master
+  script:
+    - PATH="$PREFIX/sbin:$PATH" ./ci/pytests/run.sh
+  tags:
+    - docker
+    - linux
+    - amd64
+
+
 .respdiff:  &respdiff
   stage: respdiff
   dependencies: []
diff --git a/ci/pytests/run.sh b/ci/pytests/run.sh
new file mode 100755 (executable)
index 0000000..428542d
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+python3 -m pytest -n 16 tests/pytests