mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2024-11-26 18:03:30 +01:00
Try to get PR builds working
This commit is contained in:
parent
d0ebb34432
commit
d0c9dfe2e5
@ -30,6 +30,10 @@ run_build() {
|
||||
# shellcheck disable=SC2068
|
||||
./build-branches.sh $@
|
||||
;;
|
||||
this) # Pull Requests
|
||||
# build all branches, but never push
|
||||
./build-branches.sh
|
||||
;;
|
||||
*)
|
||||
echo "🚨 Unrecognized build '$BUILD'."
|
||||
|
||||
|
@ -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…
Reference in New Issue
Block a user