More tests

This commit is contained in:
Christian Mäder 2019-10-15 00:47:19 +02:00
parent 26b1f59d66
commit 0f4a872082
2 changed files with 6 additions and 5 deletions

View File

@ -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

View File

@ -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}'."