From 0f4a872082165100bb83b90fb2be279efe29fffb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Ma=CC=88der?= Date: Tue, 15 Oct 2019 00:47:19 +0200 Subject: [PATCH] More tests --- hooks/common | 2 +- hooks/test | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/hooks/common b/hooks/common index fcf84a3..49cd507 100755 --- a/hooks/common +++ b/hooks/common @@ -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 diff --git a/hooks/test b/hooks/test index 14ad88f..f741c45 100755 --- a/hooks/test +++ b/hooks/test @@ -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}'."