dashboard/integration/ci.sh

32 lines
485 B
Bash
Raw Normal View History

#!/bin/bash
set -Exeuo pipefail
source integration/lib.sh
main() {
# CI runes these dependencies as part of its config, so skipping
# spinning up deps if running from within CI,
if [ -z ${CI+x} ];
then
docker_compose_down || true
docker_compose_up
setup_env
wait_for_env
else
cp dashboard/local_settings.ci.py dashboard/local_settings.py
fi
gitea_root
support_repo_init
fleet_repo_init
if [ -z ${CI+x} ];
then
teardown_env
docker_compose_down
fi
}
main