Skip to content

Commit

Permalink
consul nightly acceptance tests - checkout the acceptance tests from …
Browse files Browse the repository at this point in the history
…the v0.49.0 tag when running against helm v0.49.0 and 1.11/12/13 (#1592)

* checkout v0.48 tag instead of current version on older tests.

* using CIRCLE_TAG on acceptance tests to get the right version.

* disabling cron on nightly consul tests so they trigger on branch pushes.

* using run

* setting directory

* hack

* commenting out caches

* hack 2

* trying v0.49.0

* restore the cron schedule
  • Loading branch information
jmurret authored Oct 6, 2022
1 parent d3a0063 commit 452cf93
Showing 1 changed file with 75 additions and 9 deletions.
84 changes: 75 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1089,13 +1089,35 @@ jobs:
- TEST_RESULTS: /tmp/test-results
- CONSUL_IMAGE: "docker.mirror.hashicorp.services/hashicorppreview/consul-enterprise:1.11-dev"
- ENVOY_IMAGE: "envoyproxy/envoy:v1.20.2"
- CONSUL_K8S_IMAGE: "docker.mirror.hashicorp.services/hashicorp/consul-k8s-control-plane:0.48.0"
- HELM_CHART_VERSION: "0.48.0"
- CONSUL_K8S_IMAGE: "docker.mirror.hashicorp.services/hashicorp/consul-k8s-control-plane:0.49.0"
- HELM_CHART_VERSION: "0.49.0"
machine:
image: ubuntu-2004:202010-01
resource_class: xlarge
steps:
- checkout
- run:
name: checkout code
command: |
if [ -e '/home/circleci/project/.git' ] ; then
echo 'Fetching into existing repository'
existing_repo='true'
cd '/home/circleci/project'
git remote set-url origin "$CIRCLE_REPOSITORY_URL" || true
else
echo 'Cloning git repository'
existing_repo='false'
mkdir -p '/home/circleci/project'
cd '/home/circleci/project'
git clone --no-checkout "$CIRCLE_REPOSITORY_URL" .
fi
if [ "$existing_repo" = 'true' ] || [ 'false' = 'true' ]; then
echo 'Fetching from remote repository'
git fetch --force --tags origin
fi
echo 'Checking out tag'
git checkout --force "v$HELM_CHART_VERSION"
- install-prereqs
- create-kind-clusters:
version: "v1.23.0"
Expand Down Expand Up @@ -1128,13 +1150,35 @@ jobs:
- TEST_RESULTS: /tmp/test-results
- CONSUL_IMAGE: "docker.mirror.hashicorp.services/hashicorppreview/consul-enterprise:1.12-dev"
- ENVOY_IMAGE: "envoyproxy/envoy:v1.22.2"
- HELM_CHART_VERSION: "0.48.0"
- CONSUL_K8S_IMAGE: "docker.mirror.hashicorp.services/hashicorp/consul-k8s-control-plane:0.48.0"
- HELM_CHART_VERSION: "0.49.0"
- CONSUL_K8S_IMAGE: "docker.mirror.hashicorp.services/hashicorp/consul-k8s-control-plane:0.49.0"
machine:
image: ubuntu-2004:202010-01
resource_class: xlarge
steps:
- checkout
- run:
name: checkout code
command: |
if [ -e '/home/circleci/project/.git' ] ; then
echo 'Fetching into existing repository'
existing_repo='true'
cd '/home/circleci/project'
git remote set-url origin "$CIRCLE_REPOSITORY_URL" || true
else
echo 'Cloning git repository'
existing_repo='false'
mkdir -p '/home/circleci/project'
cd '/home/circleci/project'
git clone --no-checkout "$CIRCLE_REPOSITORY_URL" .
fi
if [ "$existing_repo" = 'true' ] || [ 'false' = 'true' ]; then
echo 'Fetching from remote repository'
git fetch --force --tags origin
fi
echo 'Checking out tag'
git checkout --force "v$HELM_CHART_VERSION"
- install-prereqs
- create-kind-clusters:
version: "v1.23.0"
Expand Down Expand Up @@ -1167,13 +1211,35 @@ jobs:
- TEST_RESULTS: /tmp/test-results
- CONSUL_IMAGE: "docker.mirror.hashicorp.services/hashicorppreview/consul-enterprise:1.13-dev"
- ENVOY_IMAGE: "envoyproxy/envoy:v1.23.1"
- CONSUL_K8S_IMAGE: "docker.mirror.hashicorp.services/hashicorp/consul-k8s-control-plane:0.48.0"
- HELM_CHART_VERSION: "0.48.0"
- CONSUL_K8S_IMAGE: "docker.mirror.hashicorp.services/hashicorp/consul-k8s-control-plane:0.49.0"
- HELM_CHART_VERSION: "0.49.0"
machine:
image: ubuntu-2004:202010-01
resource_class: xlarge
steps:
- checkout
- run:
name: checkout code
command: |
if [ -e '/home/circleci/project/.git' ] ; then
echo 'Fetching into existing repository'
existing_repo='true'
cd '/home/circleci/project'
git remote set-url origin "$CIRCLE_REPOSITORY_URL" || true
else
echo 'Cloning git repository'
existing_repo='false'
mkdir -p '/home/circleci/project'
cd '/home/circleci/project'
git clone --no-checkout "$CIRCLE_REPOSITORY_URL" .
fi
if [ "$existing_repo" = 'true' ] || [ 'false' = 'true' ]; then
echo 'Fetching from remote repository'
git fetch --force --tags origin
fi
echo 'Checking out tag'
git checkout --force "v$HELM_CHART_VERSION"
- install-prereqs
- create-kind-clusters:
version: "v1.23.0"
Expand Down

0 comments on commit 452cf93

Please sign in to comment.