aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xci/build-cirv.sh10
-rw-r--r--test-requirements.txt2
-rw-r--r--tox.ini16
3 files changed, 22 insertions, 6 deletions
diff --git a/ci/build-cirv.sh b/ci/build-cirv.sh
index a303633..66495ba 100755
--- a/ci/build-cirv.sh
+++ b/ci/build-cirv.sh
@@ -67,21 +67,21 @@ echo
# execute pylint to check code quality
-function execute_cirv_pylint_check() {
+function execute_cirv_pylint_check {
if ! ./check -b ; then
EXIT=$EXIT_PYLINT_FAILED
fi
}
# verify basic cirv functionality
-function execute_cirv_sanity() {
+function execute_cirv_sanity {
DATE_SUFFIX=$(date -u +"%Y-%m-%d_%H-%M-%S")
LOG_FILE="${LOG_FILE_PREFIX}_sanity_${DATE_SUFFIX}.log"
echo "Execution of CIRV sanity checks:"
for PARAM in '--version' '--help'; do
- echo -e "-------------------------------------------------------------------" >> $LOG_FILE
+ echo -e "------------------------------------------------" >> $LOG_FILE
echo "$SWV_BIN $PARAM " >> $LOG_FILE
- echo -e "-------------------------------------------------------------------" >> $LOG_FILE
+ echo -e "------------------------------------------------" >> $LOG_FILE
$SWV_BIN $PARAM &>> $LOG_FILE
if $SWV_BIN $PARAM &>> $LOG_FILE ; then
printf " %-70s %-6s\n" "$SWV_BIN $PARAM" "OK"
@@ -116,7 +116,7 @@ case $1 in
echo "================"
echo "CIRV daily job"
echo "================"
-
+
exit $EXIT
;;
esac
diff --git a/test-requirements.txt b/test-requirements.txt
index c3954be..f083866 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -1 +1,3 @@
flake8 # MIT
+yamllint
+bashate # Apache-2.0
diff --git a/tox.ini b/tox.ini
index 4b84955..d60f800 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
[tox]
-envlist = pep8
+envlist = pep8,yamllint,bashate
skipsdist = true
[testenv]
@@ -10,3 +10,17 @@ deps =
[testenv:pep8]
basepython = python3
commands = flake8
+
+[testenv:yamllint]
+basepython = python3
+files =
+ INFO.yaml
+ tools
+commands =
+ yamllint -s {[testenv:yamllint]files}
+
+[testenv:bashate]
+basepython = python3
+files =
+ ci/build-cirv.sh
+commands = bashate -e E005,E006,E042,E043 {[testenv:bashate]files}