We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 019dc5e commit 0fe1240Copy full SHA for 0fe1240
hack/verify-ansible-module.sh
@@ -0,0 +1,18 @@
1
+#!/usr/bin/bash
2
+
3
+set -o errexit
4
+set -o nounset
5
+set -o pipefail
6
7
+TEMP_DIR="$( mktemp -d )"
8
+OUTPUT_DIR="${ARTIFACT_DIR:=${TEMP_DIR}}"
9
+echo -e "Artifacts will be written to: ${OUTPUT_DIR}"
10
11
+BASE_DIR="$( readlink -e $( dirname "${BASH_SOURCE[0]}" )/..)"
12
13
+echo -e "\nVerifying ansible module"
14
+cd ${BASE_DIR}/ansible
15
+./rebuild_module.sh
16
+git diff --exit-code rebuild_module.digest || (echo 'You need to run ansible/rebuild_module.sh and include changes in this PR' && exit 1)
17
18
+exit 0
0 commit comments