36 lines
417 B
Bash
36 lines
417 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
set -Exeuo pipefail
|
||
|
|
||
|
source integration/lib.sh
|
||
|
|
||
|
init() {
|
||
|
# if is_ci
|
||
|
# then
|
||
|
# echo "[*] CI environment detected"
|
||
|
# else
|
||
|
docker_compose_up
|
||
|
setup_env
|
||
|
sleep 5
|
||
|
# wait_for_env
|
||
|
# fi
|
||
|
forgejo_root
|
||
|
init_users_repo
|
||
|
fleet_repo_init
|
||
|
}
|
||
|
|
||
|
teardown() {
|
||
|
if ! is_ci
|
||
|
then
|
||
|
docker_compose_down
|
||
|
teardown_env
|
||
|
sed -i /localhost.*/d ~/.ssh/known_hosts
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
new_fleet_repo() {
|
||
|
new_fleet_repo_init $2
|
||
|
}
|
||
|
|
||
|
$1 $@
|