Skip to content

Commit 3347189

Browse files
committed
added missing travis script
1 parent 0faeb8c commit 3347189

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

tests/travis.sh

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#!/usr/bin/env bash
2+
# #################
3+
#
4+
# Bash script to run tests in the travis-ci environment.
5+
#
6+
# version: 1.0
7+
#
8+
# usage:
9+
#
10+
# travis.sh
11+
#
12+
# example:
13+
#
14+
# bash travis.sh
15+
#
16+
# changelog:
17+
#
18+
# v1.0 : 10 June 2016
19+
# - initial version
20+
#
21+
# author(s):
22+
# - Pedro Salgado <steenzout@ymail.com>
23+
#
24+
# #################
25+
26+
test $USER != 'travis' && exit 0
27+
28+
set -e
29+
30+
ansible-playbook \
31+
-i localhost, \
32+
--connection=local test.yml \
33+
-e vagrant_box=localhost \
34+
-e env=travis \
35+
--skip-tags=test \
36+
$@ \
37+
&& bash test_checkmode.sh \
38+
--env travis \
39+
&& bash test_idempotence.sh \
40+
--env travis
41+

0 commit comments

Comments
 (0)