Try to get PR builds working
This commit is contained in:
parent
d0ebb34432
commit
d0c9dfe2e5
2 changed files with 7 additions and 3 deletions
|
@ -2,13 +2,13 @@
|
|||
|
||||
. hooks/common
|
||||
|
||||
if [ "${BUILD}" == "BRANCHES" ]; then
|
||||
# test 'branches' and 'this' (i.e. pull request) builds
|
||||
if [ "${BUILD}" == "branches" ] || [ "${BUILD}" == "this" ]; then
|
||||
echo "🐳🐳🐳 Testing"
|
||||
export DOCKER_TARGET="main"
|
||||
|
||||
docker-compose pull --parallel
|
||||
docker-compose build
|
||||
docker-compose run netbox ./manage.py test
|
||||
docker-compose down -v
|
||||
else
|
||||
echo "🐳🐳🐳 No tests are implemented for build '${BUILD}'."
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue