mirror of
https://github.com/davestephens/ansible-nas
synced 2024-11-13 23:47:10 +00:00
23 lines
333 B
Bash
Executable file
23 lines
333 B
Bash
Executable file
#!/bin/bash
|
|
#
|
|
# Ansible-NAS role tester
|
|
#
|
|
|
|
# Exit on any individual command failure.
|
|
set -e
|
|
|
|
# Pretty colors.
|
|
red='\033[0;31m'
|
|
green='\033[0;32m'
|
|
neutral='\033[0m'
|
|
|
|
timestamp=$(date +%s)
|
|
|
|
|
|
for f in ./roles/*; do
|
|
if [[ -d "$f/molecule" ]]; then
|
|
pushd "$f"
|
|
molecule -c ../../tests/molecule/base.yml test
|
|
popd
|
|
fi
|
|
done
|