From fbc603d1f9ce843579a689172b3b4020721a019c Mon Sep 17 00:00:00 2001 From: jem Date: Fri, 15 Oct 2021 17:09:10 +0200 Subject: [PATCH] test more tf versions --- .gitlab-ci.yml | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b7d0a28..9926e75 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -29,7 +29,7 @@ pylint: - pylint -d C0301 python_terraform/*.py -pytest: +test-0.13.4: stage: test script: - export TFVER=0.13.4 @@ -43,3 +43,33 @@ pytest: - unzip terraform_bin.zip -d tf_bin - PATH=$PATH:$PWD/tf_bin - pytest -v + +test-0.13.7: + stage: test + script: + - export TFVER=0.13.7 + - export TFURL=https://releases.hashicorp.com/terraform/ + - TFURL+=$TFVER + - TFURL+="/terraform_" + - TFURL+=$TFVER + - TFURL+="_linux_amd64.zip" + - wget $TFURL -O terraform_bin.zip + - mkdir tf_bin + - unzip terraform_bin.zip -d tf_bin + - PATH=$PATH:$PWD/tf_bin + - pytest -v + +test-1.0.8: + stage: test + script: + - export TFVER=1.0.8 + - export TFURL=https://releases.hashicorp.com/terraform/ + - TFURL+=$TFVER + - TFURL+="/terraform_" + - TFURL+=$TFVER + - TFURL+="_linux_amd64.zip" + - wget $TFURL -O terraform_bin.zip + - mkdir tf_bin + - unzip terraform_bin.zip -d tf_bin + - PATH=$PATH:$PWD/tf_bin + - pytest -v