diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9e38e42ed82b91864db8769b89e55246bdf5d6c9..d0a7214f6260d50c827e527493442b644879209f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -38,6 +38,10 @@ test-nvidia-gpu: stage: test script: - clinfo + - PLATFORMS=$(clinfo | grep "Number of platforms" | sed "s/Number of platforms[[:space:]]*\([0-9]*\)[^0-9]*/\1/g") + - if [ $PLATFORMS == "0" ]; then + exit -1; + fi - mvn $MAVEN_CLI_OPTS test tags: - opencl @@ -47,6 +51,9 @@ test-nvidia-cpu: stage: test script: - clinfo + - if [ $PLATFORMS != "0" ]; then + exit -1; + fi - mvn $MAVEN_CLI_OPTS test tags: - compute @@ -56,6 +63,9 @@ test-amdgpu-cpu: stage: test script: - clinfo + - if [ $PLATFORMS != "0" ]; then + exit -1; + fi - mvn $MAVEN_CLI_OPTS test tags: - compute @@ -65,6 +75,9 @@ test-pocl-gpu: stage: test script: - clinfo + - if [ $PLATFORMS == "0" ]; then + exit -1; + fi - mvn $MAVEN_CLI_OPTS test tags: - opencl @@ -74,6 +87,9 @@ test-amdgpu-cpu: stage: test script: - clinfo + - if [ $PLATFORMS != "0" ]; then + exit -1; + fi - mvn $MAVEN_CLI_OPTS test tags: - compute