From ebeb18e8d8ea69f57ec7782dcc07e98a6a67a9a7 Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Thu, 11 Apr 2019 20:10:49 +0200 Subject: [PATCH] Enable running unit tests in GitLab CI Do this for the library/local crate only. Not the main binary nor the examples can be tested for the x86_64-unknown-linux-gnu target. --- .gitlab-ci.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0f5a91b..04b4205 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -26,6 +26,4 @@ rust-build: script: - rustc --version && cargo --version - cargo build --release --jobs 1 - # FIXME: These should be run on the x86_64-unknown-linux-gnu target, - # does nothing otherwise - - env RUSTDOCFLAGS=-Cpanic=abort cargo test -- --test-threads 1 + - cargo test --lib --target x86_64-unknown-linux-gnu -- --test-threads 1