forked from wandera/terraform-rancher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (41 loc) · 1.19 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
language: go
dist: trusty
before_script:
- curl --silent --output terraform.zip https://releases.hashicorp.com/terraform/0.11.7/terraform_0.11.7_linux_amd64.zip
- sha256sum terraform.zip | grep "6b8ce67647a59b2a3f70199c304abca0ddec0e49fd060944c26f666298e23418"
- unzip terraform.zip; rm -f terraform.zip; chmod +x terraform
- mkdir -p ${HOME}/bin; export PATH=${PATH}:${HOME}/bin; mv terraform ${HOME}/bin/
- terraform -v
script:
- echo 'script'
- terraform fmt -check=true
- cd aws
- terraform init
- |
cat << EOF > terraform.tf
provider "aws" {
region = "region"
}
provider "acme" {
server_url = "url"
}
EOF
- >
terraform validate
-var "source=void"
-var "vpc_id=void"
-var "vpc_alb_subnet_ids=[]"
-var "vpc_rancher_subnet_id=void"
-var "availability_zone=void"
-var "instance_public_key=void"
-var "domain_name=void"
-var "route53_zone_id=void"
-var "acme_server_url=void"
-var "acme_registration_email=void"
-var "alb_security_groups=[]"
-var "instance_security_groups=[]"
-var "rancher_image=void"
-var "rancher_instance_type=void"
-var "cloud_tags={}"
-var "node_exporter_version=void"
- docker run --rm -v $(pwd):/app/ --workdir=/app/ -t wata727/tflint