netbox-docker/hooks/test
Christian Mäder 0f4a872082 More tests
2019-10-15 00:47:19 +02:00

16 lines
443 B
Bash
Executable File

#!/bin/bash
. hooks/common
# test 'branches' and 'this' (i.e. pull request) builds
if [ "${BUILD}" == "branches" ] \
|| [ "${BUILD}" == "this" ] \
|| [ "${DEBUG}" == "true" ]; then
echo "🐳🐳🐳 Testing"
VERSION=latest docker-compose run netbox ./manage.py test
VERSION=snapshot docker-compose run netbox ./manage.py test
docker-compose down -v
else
echo "🐳🐳🐳 No tests are implemented for build '${BUILD}'."
fi