diff --git a/test/git-clone/test.sh b/test/git-clone/test.sh index 94ad6638..baa1fd55 100755 --- a/test/git-clone/test.sh +++ b/test/git-clone/test.sh @@ -7,12 +7,9 @@ export KO_DOCKER_REPO=ko.local set -u -( - cd ../.. && \ - npm ci && \ - npm run assets \ - ko build --platform=all --base-import-paths --tags="latest" --image-user=1000 --image-annotation="" --image-label="" ./cmd/anubis -L -) +source ../lib/lib.sh + +build_anubis_ko rm -rf ./var/repos ./var/clones mkdir -p ./var/repos ./var/clones diff --git a/test/git-push/test.sh b/test/git-push/test.sh index 35ed9fe3..f2ca29ce 100755 --- a/test/git-push/test.sh +++ b/test/git-push/test.sh @@ -7,12 +7,9 @@ export KO_DOCKER_REPO=ko.local set -u -( - cd ../.. && \ - npm ci && \ - npm run assets \ - ko build --platform=all --base-import-paths --tags="latest" --image-user=1000 --image-annotation="" --image-label="" ./cmd/anubis -L -) +source ../lib/lib.sh + +build_anubis_ko rm -rf ./var/repos ./var/foo mkdir -p ./var/repos diff --git a/test/healthcheck/test.sh b/test/healthcheck/test.sh index 33f0a19b..f1932d18 100755 --- a/test/healthcheck/test.sh +++ b/test/healthcheck/test.sh @@ -7,13 +7,9 @@ export KO_DOCKER_REPO=ko.local set -u -( - cd ../.. && \ - npm ci && \ - npm run assets \ - ko build --platform=all --base-import-paths --tags="latest" --image-user=1000 --image-annotation="" --image-label="" ./cmd/anubis -L -) +source ../lib/lib.sh +build_anubis_ko docker compose up -d attempt=1