Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
okeanos-LoD
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
itminedu
okeanos-LoD
Commits
948372a4
Commit
948372a4
authored
Aug 07, 2015
by
Themis Zamani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
travis-ci test for ansible
parent
86c9d89b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
.travis.yml
.travis.yml
+2
-2
No files found.
.travis.yml
View file @
948372a4
...
...
@@ -16,7 +16,7 @@ install:
script
:
# We'll add some commands to test the role here.
-
cd ansible/roles/common/tests && ansible-playbook -i inventory test.yml --syntax-check
#- ansible-playbook -i inventory test.yml --connection=local --sudo | grep -q 'changed=0.*failed=0' && (echo 'Idempotence test: pass' && exit 0) || (echo 'Idempotence test: fail' && exit 1)
-
"
ansible-playbook
-i
inventory
test.yml
--connection=local
--sudo
|
tee
/tmp/output.txt;
grep
-q
'changed=0.*failed=0'
/tmp/output.txt
&&
(echo
'Idempotence
test:
pass'
&&
exit
0)
||
(echo
'Idempotence
test:
fail'
&&
exit
1)"
-
ansible-playbook -i inventory test.yml --connection=local --sudo
#
- "ansible-playbook -i inventory test.yml --connection=local --sudo | tee /tmp/output.txt; grep -q 'changed=0.*failed=0' /tmp/output.txt && (echo 'Idempotence test: pass' && exit 0) || (echo 'Idempotence test: fail' && exit 1)"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment