Newer
Older
netbox-docker / hooks / test
@Christian Mäder Christian Mäder on 11 Dec 2019 349 bytes Adds a test that validates the initializer yml files
#!/bin/bash

. hooks/common

# test on builds of 'branches'
if [ "${BUILD}" == "branches" ] \
   || [ "${DEBUG}" == "true" ]; then
  ./test.sh latest
  ./test.sh snapshot
# test on bulds of 'this' (i.e. pull request)
elif [ "${BUILD}" == "this" ]; then
  ./test.sh latest
else
  echo "🐳🐳🐳 No tests are implemented for build '${BUILD}'."
fi