-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
19 lines (16 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
dist: xenial
sudo: required
language: python
python:
- "2.7"
services:
- docker
script:
- export AWS_REGION='us-east-1'
- docker run --rm -v $(pwd):/work/ --workdir=/work/ -t leandelivery/docker-terraform-ci:tf-12-support terraform init
- docker run --rm -v $(pwd):/work/ --workdir=/work/ -t leandelivery/docker-terraform-ci:tf-12-support terraform fmt -check=true
- docker run --rm -v $(pwd):/work/ --workdir=/work/ -e AWS_REGION='us-east-1' -t leandelivery/docker-terraform-ci:tf-12-support terraform validate
# - docker run --rm -v $(pwd):/work/ --workdir=/work/ -t leandelivery/docker-terraform-ci:tf-12-support tf_readme_validator.py // should be replaced with https://github.com/hashicorp/terraform-config-inspect
- docker run --rm -v $(pwd):/work/ --workdir=/work/ -t leandelivery/docker-terraform-ci:tf-12-support cred-alert scan -f .
- docker run --rm -v $(pwd):/work/ --workdir=/work/ -t leandelivery/docker-terraform-ci:tf-12-support tflint -c .tflint.hcl
# - docker run --rm -v $(pwd):/work/ --workdir=/work/ -t leandelivery/docker-terraform-ci:tf-12-support terrascan --location . --test all // Project is dead, last commit 8 month ago https://github.com/cesar-rodriguez/terrascan