summaryrefslogtreecommitdiffstats
path: root/test/utils
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2020-01-28 01:38:07 +0100
committerMatt Clay <matt@mystile.com>2020-01-29 02:48:54 +0100
commit0971a0e7bcc8912a64bbdec4f67c19bee309b55b (patch)
tree3b09b0d194fdba2529f600821dcdd6535af667e2 /test/utils
parentall: fix all the the duplicate words (#66784) (diff)
downloadansible-0971a0e7bcc8912a64bbdec4f67c19bee309b55b.tar.xz
ansible-0971a0e7bcc8912a64bbdec4f67c19bee309b55b.zip
Consolidate remote Shippable scripts.
Diffstat (limited to 'test/utils')
l---------[-rwxr-xr-x]test/utils/shippable/freebsd.sh23
l---------[-rwxr-xr-x]test/utils/shippable/osx.sh23
-rwxr-xr-xtest/utils/shippable/remote.sh22
l---------[-rwxr-xr-x]test/utils/shippable/rhel.sh23
4 files changed, 25 insertions, 66 deletions
diff --git a/test/utils/shippable/freebsd.sh b/test/utils/shippable/freebsd.sh
index cd3014ccac..6ddb776854 100755..120000
--- a/test/utils/shippable/freebsd.sh
+++ b/test/utils/shippable/freebsd.sh
@@ -1,22 +1 @@
-#!/usr/bin/env bash
-
-set -o pipefail -eux
-
-declare -a args
-IFS='/:' read -ra args <<< "$1"
-
-platform="${args[0]}"
-version="${args[1]}"
-
-if [ "${#args[@]}" -gt 2 ]; then
- target="shippable/posix/group${args[2]}/"
-else
- target="shippable/posix/"
-fi
-
-stage="${S:-prod}"
-provider="${P:-default}"
-
-# shellcheck disable=SC2086
-ansible-test integration --color -v --retry-on-error "${target}" ${COVERAGE:+"$COVERAGE"} ${CHANGED:+"$CHANGED"} ${UNSTABLE:+"$UNSTABLE"} \
- --remote "${platform}/${version}" --remote-terminate always --remote-stage "${stage}" --remote-provider "${provider}"
+remote.sh \ No newline at end of file
diff --git a/test/utils/shippable/osx.sh b/test/utils/shippable/osx.sh
index cd3014ccac..6ddb776854 100755..120000
--- a/test/utils/shippable/osx.sh
+++ b/test/utils/shippable/osx.sh
@@ -1,22 +1 @@
-#!/usr/bin/env bash
-
-set -o pipefail -eux
-
-declare -a args
-IFS='/:' read -ra args <<< "$1"
-
-platform="${args[0]}"
-version="${args[1]}"
-
-if [ "${#args[@]}" -gt 2 ]; then
- target="shippable/posix/group${args[2]}/"
-else
- target="shippable/posix/"
-fi
-
-stage="${S:-prod}"
-provider="${P:-default}"
-
-# shellcheck disable=SC2086
-ansible-test integration --color -v --retry-on-error "${target}" ${COVERAGE:+"$COVERAGE"} ${CHANGED:+"$CHANGED"} ${UNSTABLE:+"$UNSTABLE"} \
- --remote "${platform}/${version}" --remote-terminate always --remote-stage "${stage}" --remote-provider "${provider}"
+remote.sh \ No newline at end of file
diff --git a/test/utils/shippable/remote.sh b/test/utils/shippable/remote.sh
new file mode 100755
index 0000000000..cd3014ccac
--- /dev/null
+++ b/test/utils/shippable/remote.sh
@@ -0,0 +1,22 @@
+#!/usr/bin/env bash
+
+set -o pipefail -eux
+
+declare -a args
+IFS='/:' read -ra args <<< "$1"
+
+platform="${args[0]}"
+version="${args[1]}"
+
+if [ "${#args[@]}" -gt 2 ]; then
+ target="shippable/posix/group${args[2]}/"
+else
+ target="shippable/posix/"
+fi
+
+stage="${S:-prod}"
+provider="${P:-default}"
+
+# shellcheck disable=SC2086
+ansible-test integration --color -v --retry-on-error "${target}" ${COVERAGE:+"$COVERAGE"} ${CHANGED:+"$CHANGED"} ${UNSTABLE:+"$UNSTABLE"} \
+ --remote "${platform}/${version}" --remote-terminate always --remote-stage "${stage}" --remote-provider "${provider}"
diff --git a/test/utils/shippable/rhel.sh b/test/utils/shippable/rhel.sh
index cd3014ccac..6ddb776854 100755..120000
--- a/test/utils/shippable/rhel.sh
+++ b/test/utils/shippable/rhel.sh
@@ -1,22 +1 @@
-#!/usr/bin/env bash
-
-set -o pipefail -eux
-
-declare -a args
-IFS='/:' read -ra args <<< "$1"
-
-platform="${args[0]}"
-version="${args[1]}"
-
-if [ "${#args[@]}" -gt 2 ]; then
- target="shippable/posix/group${args[2]}/"
-else
- target="shippable/posix/"
-fi
-
-stage="${S:-prod}"
-provider="${P:-default}"
-
-# shellcheck disable=SC2086
-ansible-test integration --color -v --retry-on-error "${target}" ${COVERAGE:+"$COVERAGE"} ${CHANGED:+"$CHANGED"} ${UNSTABLE:+"$UNSTABLE"} \
- --remote "${platform}/${version}" --remote-terminate always --remote-stage "${stage}" --remote-provider "${provider}"
+remote.sh \ No newline at end of file