From 091e01ba40e488dfd68b43db56fc0693a350510a Mon Sep 17 00:00:00 2001 From: Daniel Mueller Date: Sat, 5 Jan 2019 19:44:44 -0800 Subject: 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. --- nitrocli/ci/gitlab-ci.yml | 6 ++++-- 1 file 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: -- cgit v1.2.3