-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- update github workflows - update molecule config
- Loading branch information
Showing
15 changed files
with
131 additions
and
52 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
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,5 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
. hooks/_tox_base | ||
|
||
tox ${TOX_OPTS} -- molecule converge ${TOX_ARGS} | ||
hooks/tox.sh "converge" |
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,5 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
. hooks/_tox_base | ||
|
||
tox ${TOX_OPTS} -- molecule destroy ${TOX_ARGS} | ||
hooks/tox.sh "destroy" |
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,5 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
. hooks/_tox_base | ||
|
||
tox ${TOX_OPTS} -- molecule lint ${TOX_ARGS} | ||
hooks/tox.sh "lint" |
File renamed without changes.
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,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
hooks/tox.sh "test" |
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,26 @@ | ||
#!/usr/bin/env bash | ||
|
||
. hooks/molecule.rc | ||
|
||
TOX_TEST="${1}" | ||
|
||
if [ -f "./collections.yml" ] | ||
then | ||
for collection in $(grep -v "#" collections.yml | grep "^ - name: " | awk -F ': ' '{print $2}') | ||
do | ||
collections_installed="$(ansible-galaxy collection list | grep ${collection} 2> /dev/null)" | ||
|
||
if [ -z "${collections_installed}" ] | ||
then | ||
echo "Install the required collection '${collection}'" | ||
ansible-galaxy collection install ${collection} | ||
else | ||
collection_version=$(echo "${collections_installed}" | awk -F ' ' '{print $2}') | ||
|
||
echo "The required collection '${collection}' is installed in version ${collection_version}." | ||
fi | ||
done | ||
echo "" | ||
fi | ||
|
||
tox ${TOX_OPTS} -- molecule ${TOX_TEST} ${TOX_ARGS} |
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,5 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
. hooks/_tox_base | ||
|
||
tox ${TOX_OPTS} -- molecule verify ${TOX_ARGS} | ||
hooks/tox.sh "verify" |
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
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