Skip to content

Commit

Permalink
squash! squash! Make the pre_e2e script echo the token
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdulrhmnGhanem committed Jun 29, 2023
1 parent 59d36a5 commit 0c2c4a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/pre_e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0c2c4a0

Please sign in to comment.