aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mueller <deso@posteo.net>2019-01-05 19:44:44 -0800
committerDaniel Mueller <deso@posteo.net>2019-01-05 19:44:44 -0800
commit091e01ba40e488dfd68b43db56fc0693a350510a (patch)
tree4503b7872ae91b7d9ec73bf36fae91145a131560
parentd9adac05dfa5de83465fde3479df4fd898ebd8bd (diff)
downloadnitrocli-091e01ba40e488dfd68b43db56fc0693a350510a.tar.gz
nitrocli-091e01ba40e488dfd68b43db56fc0693a350510a.tar.bz2
Run unit tests as part of continuous integration
For a while now the unit tests no longer require a Nitrokey device to be present in order to run. Right now that is because we lack device specific tests, but even in the future we will take measures to not fail when a device is not present (by default). Hence, there is no reason not to run the unit tests as part of the continuous integration pipeline. To that end, this change adds them to said pipeline.
-rw-r--r--nitrocli/ci/gitlab-ci.yml6
1 files changed, 4 insertions, 2 deletions
diff --git a/nitrocli/ci/gitlab-ci.yml b/nitrocli/ci/gitlab-ci.yml
index 0b98522..76ee517 100644
--- a/nitrocli/ci/gitlab-ci.yml
+++ b/nitrocli/ci/gitlab-ci.yml
@@ -7,12 +7,14 @@
# https://github.com/rust-lang/docker-rust/blob/e7703b2cf525f2525bdf8d131cd66b5b38b1513c/1.31.0/stretch/Dockerfile
image: "rust:1.31.0"
-build:cargo:
+build-test:cargo:
script:
- apt-get update
- apt-get install --assume-yes libudev-dev libhidapi-dev
- rustc --version && cargo --version
- - cd nitrocli && cargo build --all --verbose
+ - cd nitrocli
+ - cargo build --all --verbose
+ - cargo test --all --verbose
lint:clippy:
script: