2019-02-01 09:58:07 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
. hooks/common
|
|
|
|
|
2019-10-10 12:42:10 +02:00
|
|
|
if [ "${BUILD}" == "BRANCHES" ]; then
|
2019-02-01 09:58:07 +01:00
|
|
|
echo "🐳🐳🐳 Testing"
|
2019-10-10 12:42:10 +02:00
|
|
|
export DOCKER_TARGET="main"
|
|
|
|
|
2019-02-01 09:58:07 +01:00
|
|
|
docker-compose pull --parallel
|
|
|
|
docker-compose build
|
|
|
|
docker-compose run netbox ./manage.py test
|
|
|
|
else
|
2019-10-10 12:42:10 +02:00
|
|
|
echo "🐳🐳🐳 No tests are implemented for build '${BUILD}'."
|
2019-02-01 09:58:07 +01:00
|
|
|
fi
|