Skip to content

Commit fc1f93e

Browse files
committed
Make integration tests slightly easier to run locally
1 parent ad61cc3 commit fc1f93e

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.buildkite/create-serverless.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ export EC_REGION=aws-eu-west-1
99
export EC_PROJECT_NAME="$EC_PROJECT_PREFIX-$BUILDKITE_JOB_ID"
1010

1111
# fetch cloud creds used by qaf
12-
CLOUD_ACCESS_KEY=$(vault read -field="$EC_ENV" "$CLOUD_CREDENTIALS_PATH")
12+
if [ -z "$CLOUD_ACCESS_KEY" ]; then
13+
CLOUD_ACCESS_KEY=$(vault read -field="$EC_ENV" "$CLOUD_CREDENTIALS_PATH")
14+
fi
1315
echo "{\"api_key\":{\"$EC_ENV\":\"$CLOUD_ACCESS_KEY\"}}" > "$(pwd)/cloud.json"
1416

1517
run_qaf() {

.buildkite/run-client.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ docker build \
1919

2020
echo "--- :javascript: Running tests"
2121

22-
GITHUB_TOKEN=$(vault read -field=token "$GITHUB_TOKEN_PATH")
23-
export GITHUB_TOKEN
22+
if [ -z "$GITHUB_TOKEN" ]; then
23+
GITHUB_TOKEN=$(vault read -field=token "$GITHUB_TOKEN_PATH")
24+
export GITHUB_TOKEN
25+
fi
2426

2527
mkdir -p "$repo/junit-output"
2628
docker run \

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ node_modules
22
npm-debug.log
33
.git
44
.nyc_output
5+
lib
6+
yaml-rest-tests

0 commit comments

Comments
 (0)