-
Notifications
You must be signed in to change notification settings - Fork 677
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add self testing - fixes current problems preventing use as an action - make use of pip caching for linter requirements
- Loading branch information
Showing
6 changed files
with
46 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
# This is used during the ansible-lint own testing. | ||
collections: | ||
- ansible.posix | ||
- ansible.windows | ||
- community.crypto | ||
- community.docker | ||
- community.general | ||
- community.molecule |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,4 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
pushd examples/playbooks/collections >/dev/null | ||
MISSING=() | ||
export ANSIBLE_COLLECTIONS_PATH=. | ||
for COLLECTION in ansible.posix community.docker community.general community.molecule ansible.windows community.crypto; | ||
do | ||
COL_NAME=${COLLECTION//\./-} | ||
FILENAME=$(find . -maxdepth 1 -name "$COL_NAME*" -print -quit) | ||
if test -n "$FILENAME" | ||
then | ||
echo "Already cached $COL_NAME as $FILENAME" | ||
else | ||
MISSING+=("${COLLECTION}") | ||
fi | ||
if [ ${#MISSING[@]} -ne 0 ]; then | ||
ansible-galaxy collection download -p . -v "${MISSING[@]}" | ||
fi | ||
done | ||
|
||
echo "Install requirements.yml ..." | ||
ansible-galaxy collection install *.tar.gz -p . | ||
ansible-galaxy collection list | ||
popd >/dev/null | ||
ansible-galaxy collection install -r requirements.yml |