diff options
Diffstat (limited to 'openlab')
-rw-r--r-- | openlab/tox.ini | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/openlab/tox.ini b/openlab/tox.ini new file mode 100644 index 0000000..e9bf1ed --- /dev/null +++ b/openlab/tox.ini @@ -0,0 +1,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" |