More tests
This commit is contained in:
parent
26b1f59d66
commit
0f4a872082
|
@ -53,7 +53,7 @@ export DOCKER_ORG="index.docker.io/netboxcommunity"
|
|||
export DOCKER_REPO=netbox
|
||||
export DOCKERHUB_REPO=netboxcommunity/netbox
|
||||
# shellcheck disable=SC2153
|
||||
export BUILD="$DOCKER_TAG"
|
||||
export BUILD="${DOCKER_TAG}"
|
||||
|
||||
unset DOCKER_TAG
|
||||
|
||||
|
|
|
@ -3,11 +3,12 @@
|
|||
. hooks/common
|
||||
|
||||
# test 'branches' and 'this' (i.e. pull request) builds
|
||||
if [ "${BUILD}" == "branches" ] || [ "${BUILD}" == "this" ]; then
|
||||
if [ "${BUILD}" == "branches" ] \
|
||||
|| [ "${BUILD}" == "this" ] \
|
||||
|| [ "${DEBUG}" == "true" ]; then
|
||||
echo "🐳🐳🐳 Testing"
|
||||
export DOCKER_TARGET="main"
|
||||
|
||||
docker-compose run netbox ./manage.py test
|
||||
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}'."
|
||||
|
|
Loading…
Reference in New Issue