diff --git a/scripts/pre_e2e.sh b/scripts/pre_e2e.sh index 8ba3ce3351..fe2661e9a6 100755 --- a/scripts/pre_e2e.sh +++ b/scripts/pre_e2e.sh @@ -9,15 +9,15 @@ truncate -s "${MAX_FILE_SIZE:-6M}" "${auto_gen_fixtures_path}/big.txt" # generate admin token used for importing projects during e2e tests if [[ "${CI:-}" = "true" ]]; then - docker-compose -f docker-compose.yml -f docker-compose.deploy.yml up -d &> /dev/null + docker-compose -f docker-compose.yml -f docker-compose.deploy.yml up -d until docker logs kitspace_gitea_1 | grep 'ORM engine initialization successful' ; do sleep 3s; done else # The tests are running locally. - docker-compose up -d &> /dev/null + docker-compose up -d fi token="$(deno run --allow-env --allow-net --allow-run ./scripts/importBoardsTxt.ts --tokenOnly)" -docker-compose stop &> /dev/null +docker-compose stop # reutrn the token so it can be used as $(./scripts/pre_e2e.sh) echo $token