Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit 08b4d1d

Browse files
committed
Only source env.sh if running locally
1 parent 8906094 commit 08b4d1d

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

integrationTest.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,16 @@ if [ -z "$CIRCLECI" ]; then
88
go test ./... 2>&1 | grep -v 'no test files'
99
fi
1010

11-
if [[ -f "tests/env.sh" ]] || [ -n "$CIRCLECI" ]; then
12-
echo "env.sh already configured, skipping configuring new accounts..."
11+
if [[ -f "tests/env.sh" ]]; then
12+
echo "env.sh already exists, skipping configuring new accounts..."
13+
source tests/env.sh
1314
else
15+
if [ -n "$CIRCLECI" ]; then
16+
echo "Running in circle with configured environment variables"
17+
else
1418
python3 tests/configure_accounts.py
19+
source tests/env.sh
20+
fi
1521
fi
1622
set -u
1723

@@ -28,7 +34,6 @@ reset_docker() {
2834
}
2935

3036
cd tests/
31-
source env.sh
3237
reset_docker
3338

3439
echo "Building containers..."

0 commit comments

Comments
 (0)