aboutsummaryrefslogtreecommitdiffhomepage
path: root/setup_travis_tests.sh
diff options
context:
space:
mode:
authorLarry Smith Jr <mrlesmithjr@gmail.com>2018-12-19 09:52:21 -0500
committerLarry Smith Jr <mrlesmithjr@gmail.com>2018-12-19 09:52:21 -0500
commitd62baac66345ed735443cbb648e684923fed7d17 (patch)
tree0dc5c11f860fe6b373f3f66b87358d1e46b8407d /setup_travis_tests.sh
parent9cac39786e63d655eceb3ecbd74b3df8461654d3 (diff)
downloadansible-rabbitmq-d62baac66345ed735443cbb648e684923fed7d17.tar.gz
ansible-rabbitmq-d62baac66345ed735443cbb648e684923fed7d17.tar.zst
ansible-rabbitmq-d62baac66345ed735443cbb648e684923fed7d17.zip
Added Travis testing
Diffstat (limited to 'setup_travis_tests.sh')
-rwxr-xr-xsetup_travis_tests.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/setup_travis_tests.sh b/setup_travis_tests.sh
new file mode 100755
index 0000000..302e659
--- /dev/null
+++ b/setup_travis_tests.sh
@@ -0,0 +1,18 @@
1#!/usr/bin/env bash
2TRAVIS_TEST_VER="v1.6.2"
3
4TAR_FILE="$TRAVIS_TEST_VER.tar.gz"
5
6# Prompt for Ansible role name
7read -r -p "Enter the Ansible role name: " input
8
9# Update .travis.yml with Ansible role name
10sed -i '' "s/replace_role/${input}/g" ".travis.yml"
11
12# Update tests/test.yml with Ansible role name
13sed -i '' "s/replace_role/${input}/g" "tests/test.yml"
14
15# Cleanup
16if [ -f $TAR_FILE ]; then
17 rm $TAR_FILE
18fi