netbox-docker/hooks/test

16 lines
443 B
Plaintext
Raw Normal View History

2019-02-01 08:58:07 +00:00
#!/bin/bash
. hooks/common
2019-10-10 12:08:31 +00:00
# test 'branches' and 'this' (i.e. pull request) builds
2019-10-14 22:47:19 +00:00
if [ "${BUILD}" == "branches" ] \
|| [ "${BUILD}" == "this" ] \
|| [ "${DEBUG}" == "true" ]; then
2019-02-01 08:58:07 +00:00
echo "🐳🐳🐳 Testing"
2019-10-14 22:47:19 +00:00
VERSION=latest docker-compose run netbox ./manage.py test
VERSION=snapshot docker-compose run netbox ./manage.py test
2019-10-10 12:08:31 +00:00
docker-compose down -v
2019-02-01 08:58:07 +00:00
else
echo "🐳🐳🐳 No tests are implemented for build '${BUILD}'."
2019-02-01 08:58:07 +00:00
fi