Update release in docs/conf.yaml
[transportpce.git] / tox.ini
diff --git a/tox.ini b/tox.ini
index 6a86daa042260b670f0d9ba88b7cb5588dc1de76..73f3460ee563f51e23f57e900dcf715b554608d7 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -60,7 +60,7 @@ allowlist_externals = build.sh
 depends = buildcontroller,tests_hybrid
 changedir = {toxinidir}/lighty
 commands =
-  ./build.sh
+  ./build.sh
 
 [testenv:sims]
 passenv = USE_SIMS
@@ -403,7 +403,14 @@ commands =
 basepython = python3
 deps = pre-commit
 passenv = HOME
+allowlist_externals = sh
+                      cpan
+                      sudo
+                      which
 commands =
+    sh -c 'which cpan || sudo yum install -y perl-CPAN  \
+        || (echo "cpan command not found - please install it \
+             (e.g. sudo apt-get install perl-modules | yum install perl-CPAN )" >&2 && exit 1)'
     pre-commit run --all-files --show-diff-on-failure
     pre-commit run gitlint-ci --hook-stage manual