netbox-docker/hooks/test

15 lines
359 B
Plaintext
Raw Normal View History

2019-02-01 02:58:07 -06:00
#!/bin/bash
. hooks/common
2019-10-10 07:08:31 -05:00
# test 'branches' and 'this' (i.e. pull request) builds
if [ "${BUILD}" == "branches" ] || [ "${BUILD}" == "this" ]; then
2019-02-01 02:58:07 -06:00
echo "🐳🐳🐳 Testing"
export DOCKER_TARGET="main"
2019-02-01 02:58:07 -06:00
docker-compose run netbox ./manage.py test
2019-10-10 07:08:31 -05:00
docker-compose down -v
2019-02-01 02:58:07 -06:00
else
echo "🐳🐳🐳 No tests are implemented for build '${BUILD}'."
2019-02-01 02:58:07 -06:00
fi