Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions tests/bash/lint-test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,17 @@ setup() {
fi

cd "$ANSIBLE_DIR"
# ansible-lint runs offline (.ansible-lint), so the Galaxy roles our roles
# depend on (geerlingguy.docker) must be installed first. Install them here
# rather than rely on another test file having run first: run-tests.sh passes
# the files in `find` order, which differs between runners.
run ansible-galaxy role install -r requirements.yml
if [ "$status" -ne 0 ]; then
echo "ansible-galaxy role install failed (exit $status):" >&2
echo "$output" >&2
fi
[ "$status" -eq 0 ]

run ansible-lint -c .ansible-lint roles/

# Print output on failure to aid CI debugging
Expand Down
Loading