Skip to content

Commit

Permalink
Skip acceptance tests on forked prs (hashicorp#599)
Browse files Browse the repository at this point in the history
  • Loading branch information
lkysow authored Sep 8, 2020
1 parent 6b1c6be commit e1c08ec
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,14 @@ jobs:
- image: hashicorpdev/consul-helm-test:0.5.0

steps:
- run:
name: Exit if forked PR
command: |
if [ -n "$CIRCLE_PR_NUMBER" ]; then
echo "Skipping acceptance tests for forked PRs; marking step successful."
circleci step halt
fi
- checkout

- run:
Expand All @@ -122,10 +130,6 @@ jobs:
working_directory: test/acceptance/tests
no_output_timeout: 30m
command: |
if [ -n "$CIRCLE_PR_NUMBER" ]; then
echo "Skipping acceptance tests for forked PRs; marking step successful."
circleci step halt
fi
eval "$(echo export primary_kubeconfig=$(terraform output -state ../../terraform/gke/terraform.tfstate -json | jq -r .kubeconfigs.value[0]))"
eval "$(echo export secondary_kubeconfig=$(terraform output -state ../../terraform/gke/terraform.tfstate -json | jq -r .kubeconfigs.value[1]))"
Expand Down

0 comments on commit e1c08ec

Please sign in to comment.