From abeaa0b0779991caa23a09438e62c9af0c24e4f3 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Tue, 30 Jan 2018 18:27:13 +0100 Subject: [PATCH] execute FPGA unit on acs-villas --- fpga/.gitlab-ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/fpga/.gitlab-ci.yml b/fpga/.gitlab-ci.yml index 6bacbe506..5575b86f6 100644 --- a/fpga/.gitlab-ci.yml +++ b/fpga/.gitlab-ci.yml @@ -69,6 +69,20 @@ test:unit-software: tags: - docker +test:unit-hardware: + stage: test + dependencies: + - build:source + tags: + - villas-fpga + script: | + if [ "$(who | wc -l)" -eq "0" ]; then + build/tests/unit-tests --filter 'fpga/*' + else + echo "System is currently used by: $(who)" + echo "We are skipping the test. Please restart manually." + fi + # Stage: deploy ##############################################################################