fix terraform path on travis
This commit is contained in:
parent
7b9a0491ca
commit
699c7bb17c
2 changed files with 6 additions and 5 deletions
|
@ -12,9 +12,8 @@ python:
|
||||||
before_install: 'sudo apt-get install unzip'
|
before_install: 'sudo apt-get install unzip'
|
||||||
before_script:
|
before_script:
|
||||||
- 'wget https://releases.hashicorp.com/terraform/0.7.11/terraform_0.7.11_linux_amd64.zip'
|
- 'wget https://releases.hashicorp.com/terraform/0.7.11/terraform_0.7.11_linux_amd64.zip'
|
||||||
- 'mkdir terraform'
|
- 'unzip terraform_0.7.11_linux_amd64.zip'
|
||||||
- 'unzip terraform_0.7.11_linux_amd64.zip -d terraform'
|
- './terraform --version'
|
||||||
- 'sudo ln -s $PWD/terraform/terraform /usr/local/terraform'
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- "pip install -r test/requirements.txt"
|
- "pip install -r test/requirements.txt"
|
||||||
|
|
|
@ -19,13 +19,15 @@ class Terraform:
|
||||||
state=None,
|
state=None,
|
||||||
variables=None,
|
variables=None,
|
||||||
parallelism=None,
|
parallelism=None,
|
||||||
var_file=None):
|
var_file=None,
|
||||||
|
terraform_bin_path=None):
|
||||||
self.working_dir = working_dir
|
self.working_dir = working_dir
|
||||||
self.state = state
|
self.state = state
|
||||||
self.targets = [] if targets is None else targets
|
self.targets = [] if targets is None else targets
|
||||||
self.variables = dict() if variables is None else variables
|
self.variables = dict() if variables is None else variables
|
||||||
self.parallelism = parallelism
|
self.parallelism = parallelism
|
||||||
self.terraform_bin_path = 'terraform'
|
self.terraform_bin_path = terraform_bin_path \
|
||||||
|
if terraform_bin_path else 'terraform'
|
||||||
self.var_file = var_file
|
self.var_file = var_file
|
||||||
self.input = False
|
self.input = False
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue