Added quick tests for non master/dev builds
@@ -100,6 +100,33 @@ testjob:
tags:
- gift-linux
+quicktest:
+ stage: dev_test
+ except:
+ - master
+ - dev
+ - dev-staging
+ - tags
+ script:
+ # print system info
+ - which nvidia-smi
+ - nvidia-smi
+ - pwd
+ - python -c "import tensorflow as tf; print tf.__version__"
+ - python -c "import tensorflow as tf; from tensorflow.python.client import device_lib; print device_lib.list_local_devices()"
+ - ls -la /dev | grep nvidia
+
+ - echo $(python tests/get_gpu_index.py)
+ - export CUDA_VISIBLE_DEVICES=$(python tests/get_gpu_index.py)
+
+ # run only fast tests
+ - QUICKTEST=True coverage run -m unittest discover -s "tests" -p "*_test.py"
+
+ - echo 'finished quick tests'
+ tags:
+ - gift-linux
+
+
pip-installer:
stage: pip_test
only:
