Skip to content

Commit 85e39da

Browse files
Update galaxy.yml release version (#338)
Update galaxy.yml release version Need for release Reviewed-by: Vladimir Hasko <[email protected]> Reviewed-by: Aloento Reviewed-by: Artem Lifshits
1 parent d8c6cdd commit 85e39da

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

galaxy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace: opentelekomcloud
22
name: cloud
3-
version: 0.14.2
3+
version: 0.14.3
44
readme: README.md
55
authors:
66
- Artem Goncharov <[email protected]>

tests/utils/sanity.sh

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,19 @@ if [ -f "requirements.txt" ]; then
2727
fi
2828

2929
cd "$TEST_DIR"
30-
ansible-test sanity --skip-test metaclass-boilerplate --skip-test future-import-boilerplate
30+
SKIP_TESTS=""
31+
# Ansible-core 2.17 dropped support for the metaclass-boilerplate and future-import-boilerplate tests.
32+
ANSIBLE_VER=$(python3 -m pip show ansible-core | awk '$1 == "Version:" { print $2 }')
33+
ANSIBLE_MAJOR_VER=$(echo "$ANSIBLE_VER" | sed 's/^\([0-9]\)\..*/\1/g')
34+
if [[ $ANSIBLE_MAJOR_VER -eq 2 ]]; then
35+
ANSIBLE_MINOR_VER=$(echo "$ANSIBLE_VER" | sed 's/^2\.\([^\.]*\)\..*/\1/g')
36+
if [[ $ANSIBLE_MINOR_VER -le 16 ]]; then
37+
SKIP_TESTS="--skip-test metaclass-boilerplate --skip-test future-import-boilerplate"
38+
fi
39+
fi
40+
41+
echo "Ansible version: $ANSIBLE_VER"
42+
echo "Tests to skip: $SKIP_TESTS"
43+
44+
ansible-test sanity -v \
45+
$SKIP_TESTS

0 commit comments

Comments
 (0)