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 DOCKER_REPO=netbox
|
||||||
export DOCKERHUB_REPO=netboxcommunity/netbox
|
export DOCKERHUB_REPO=netboxcommunity/netbox
|
||||||
# shellcheck disable=SC2153
|
# shellcheck disable=SC2153
|
||||||
export BUILD="$DOCKER_TAG"
|
export BUILD="${DOCKER_TAG}"
|
||||||
|
|
||||||
unset DOCKER_TAG
|
unset DOCKER_TAG
|
||||||
|
|
||||||
|
@ -3,11 +3,12 @@
|
|||||||
. hooks/common
|
. hooks/common
|
||||||
|
|
||||||
# test 'branches' and 'this' (i.e. pull request) builds
|
# 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"
|
echo "🐳🐳🐳 Testing"
|
||||||
export DOCKER_TARGET="main"
|
VERSION=latest docker-compose run netbox ./manage.py test
|
||||||
|
VERSION=snapshot docker-compose run netbox ./manage.py test
|
||||||
docker-compose run netbox ./manage.py test
|
|
||||||
docker-compose down -v
|
docker-compose down -v
|
||||||
else
|
else
|
||||||
echo "🐳🐳🐳 No tests are implemented for build '${BUILD}'."
|
echo "🐳🐳🐳 No tests are implemented for build '${BUILD}'."
|
||||||
|
Loading…
Reference in New Issue
Block a user