-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
19 lines (15 loc) · 1.01 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
language: bash
sudo: required
services:
- docker
before_install:
- docker pull hashicorp/terraform:0.10.7
- docker pull wata727/tflint:0.5.1
script:
- docker run --rm -v $(pwd):/data --workdir=/data -t hashicorp/terraform:0.10.7 validate -check-variables=false
- docker run --rm -v $(pwd):/data --workdir=/data -t hashicorp/terraform:0.10.7 fmt -write=false -diff=true -check=true
- docker run --rm -v $(pwd):/data --workdir=/data -t hashicorp/terraform:0.10.7 get
# tflint chokes when trying to check our syntax because of this issue: https://github.com/wata727/tflint/issues/204
# specifically, it's currently unable to parse the construct we have at https://github.com/blinkist/terraform-aws-airship-ecs-service/blob/85dc02a8b0a1def86186d46167ace55d7375f13b/main.tf#L204
# fixing it is pretty involved and the author plans to rip out the parsing in favour of terraform's anyway. so for now, just disable it.
# - docker run --rm -v $(pwd):/data --workdir=/data -t wata727/tflint:0.5.1 --error-with-issues