Skip to content

Commit

Permalink
Update galaxy.yml release version (#338)
Browse files Browse the repository at this point in the history
Update galaxy.yml release version

Need for release

Reviewed-by: Vladimir Hasko <vladimirhasko@gmail.com>
Reviewed-by: Aloento
Reviewed-by: Artem Lifshits
  • Loading branch information
anton-sidelnikov authored Jun 11, 2024
1 parent d8c6cdd commit 85e39da
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace: opentelekomcloud
name: cloud
version: 0.14.2
version: 0.14.3
readme: README.md
authors:
- Artem Goncharov <artem.goncharov@gmail.com>
Expand Down
17 changes: 16 additions & 1 deletion tests/utils/sanity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,19 @@ if [ -f "requirements.txt" ]; then
fi

cd "$TEST_DIR"
ansible-test sanity --skip-test metaclass-boilerplate --skip-test future-import-boilerplate
SKIP_TESTS=""
# Ansible-core 2.17 dropped support for the metaclass-boilerplate and future-import-boilerplate tests.
ANSIBLE_VER=$(python3 -m pip show ansible-core | awk '$1 == "Version:" { print $2 }')
ANSIBLE_MAJOR_VER=$(echo "$ANSIBLE_VER" | sed 's/^\([0-9]\)\..*/\1/g')
if [[ $ANSIBLE_MAJOR_VER -eq 2 ]]; then
ANSIBLE_MINOR_VER=$(echo "$ANSIBLE_VER" | sed 's/^2\.\([^\.]*\)\..*/\1/g')
if [[ $ANSIBLE_MINOR_VER -le 16 ]]; then
SKIP_TESTS="--skip-test metaclass-boilerplate --skip-test future-import-boilerplate"
fi
fi

echo "Ansible version: $ANSIBLE_VER"
echo "Tests to skip: $SKIP_TESTS"

ansible-test sanity -v \
$SKIP_TESTS

0 comments on commit 85e39da

Please sign in to comment.