Skip to content

Commit 61aa937

Browse files
committed
CCM-10294: pipeline performance
1 parent 1f03367 commit 61aa937

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

infrastructure/terraform/bin/terraform.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -425,10 +425,10 @@ if [ "${bootstrap}" == "true" ]; then
425425
tf_var_params+=" -var bucket_name=${bucket}";
426426
fi;
427427

428-
# Run pre.sh
429-
if [ -f "pre.sh" ]; then
430-
source pre.sh "${region}" "${environment}" "${action}" \
431-
|| error_and_die "Component pre script execution failed with exit code ${?}";
428+
# Run pre-plan.sh / pre-apply.sh / pre-output.sh etc
429+
if [ -f "pre-${action}.sh" ]; then
430+
source pre-${action}.sh "${region}" "${environment}" "${action}" \
431+
|| error_and_die "Component pre-${action}.sh script execution failed with exit code ${?}";
432432
fi;
433433

434434
# Pull down secret TFVAR file from S3
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
source pre.sh
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
source pre.sh

scripts/tests/test.mk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ test-typecheck: # Typecheck your code from scripts/test/typecheck @Testing
2020
test-coverage: # Evaluate code coverage from scripts/test/coverage @Testing
2121
make _test name="coverage"
2222

23-
test-accessibility: # Run your accessibility tests from scripts/test/accessibility @Testing
23+
test-accessibility: # Run tests from scripts/tests/accessibility.sh @Testing
2424
make _test name="accessibility"
2525

26-
test-ui-component: # Run your UI tests from scripts/test/ui @Testing
26+
test-ui-component: # Run tests from scripts/tests/ui-component.sh @Testing
2727
make _test name="ui-component"
2828

29-
test-ui-e2e: # Run your UI tests from scripts/test/ui @Testing
29+
test-ui-e2e: # Run tests from scripts/tests/ui-e2e.sh @Testing
3030
make _test name="ui-e2e"
3131

32-
test-api: # Run your UI tests from scripts/test/ui @Testing
32+
test-api: # Run tests from scripts/tests/api.sh @Testing
3333
make _test name="api"
3434

3535
test: # Run all the test tasks @Testing

0 commit comments

Comments
 (0)