forked from Hostea/dashboard
30 lines
415 B
Bash
Executable File
30 lines
415 B
Bash
Executable File
#!/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
|
|
fi
|
|
gitea_root
|
|
support_repo_init
|
|
fleet_repo_init
|
|
if [ -z ${CI+x} ];
|
|
then
|
|
teardown_env
|
|
docker_compose_down
|
|
fi
|
|
}
|
|
|
|
main
|