mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2024-11-23 08:23:16 +01:00
15 lines
359 B
Bash
Executable File
15 lines
359 B
Bash
Executable File
#!/bin/bash
|
|
|
|
. hooks/common
|
|
|
|
# test 'branches' and 'this' (i.e. pull request) builds
|
|
if [ "${BUILD}" == "branches" ] || [ "${BUILD}" == "this" ]; then
|
|
echo "🐳🐳🐳 Testing"
|
|
export DOCKER_TARGET="main"
|
|
|
|
docker-compose run netbox ./manage.py test
|
|
docker-compose down -v
|
|
else
|
|
echo "🐳🐳🐳 No tests are implemented for build '${BUILD}'."
|
|
fi
|