blob: 51b1841585d2d103ff5fd0c371bb6cb2c3694ae1 [file] [log] [blame]
#!/usr/bin/env bash
set -e
echo "Running nose tests..."
nosetests -w lib/
echo "SUCCESS: All Nose tests completed."
echo "Running Ansible-lint..."
ansible-lint -x no-changed-when,risky-file-permissions,unnamed-task,var-naming
echo "SUCCESS: Ansible-lint completed."
echo "Running flake8 to check Python code..."
flake8
echo "SUCCESS: flake8 completed."
echo "Checking for files which have no newline at end of file..."
git ls-files | tr '\n' '\0' | xargs -0 -L1 -n1 "$(dirname "$0")/checkMissingEOF"
echo "SUCCESS: All files have newline at the end."
echo "All tests passed!"