Adds a test that validates the initializer yml files
This commit is contained in:
parent
bf2a21ddea
commit
daaf72962f
2 changed files with 49 additions and 10 deletions
13
hooks/test
13
hooks/test
|
@ -2,21 +2,14 @@
|
|||
|
||||
. hooks/common
|
||||
|
||||
run_test() {
|
||||
echo "🐳🐳🐳 Testing '${1}'"
|
||||
VERSION="${1}" docker-compose run netbox ./manage.py test
|
||||
docker-compose down -v
|
||||
echo "🐳🐳🐳 Done testing '${1}'"
|
||||
}
|
||||
|
||||
# test on builds of 'branches'
|
||||
if [ "${BUILD}" == "branches" ] \
|
||||
|| [ "${DEBUG}" == "true" ]; then
|
||||
run_test latest
|
||||
run_test snapshot
|
||||
./test.sh latest
|
||||
./test.sh snapshot
|
||||
# test on bulds of 'this' (i.e. pull request)
|
||||
elif [ "${BUILD}" == "this" ]; then
|
||||
run_test latest
|
||||
./test.sh latest
|
||||
else
|
||||
echo "🐳🐳🐳 No tests are implemented for build '${BUILD}'."
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue