Change-Id: Idec1f69dfc952de6b1b1dfc79d7363a39f40d04f
Issue-ID: INT-1713
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
--- /dev/null
+.tox/
+.terraform/
--- /dev/null
+[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"