blob: e9bf1ed77b333301419d732a74804dbc656415f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
[tox]
minversion = 3.2.0
envlist = terraform
skipsdist = true
requires = pip >= 8
[testenv]
basepython = python3
whitelist_externals = bash
[testenv:terraform]
commands = /bin/bash -e -c "for module in $(find -type f -name main.tf | sed s/main.tf//g | sed 's/\.\///g'); \
do \
terraform init -no-color $\{module\}; \
terraform validate -no-color $\{module\}; \
done"
|