Skip to content

Commit 31c86e3

Browse files
committed
Update .travis.yml
Do not check localhost when running the NGINX Unit test playbook
1 parent 8aad2bc commit 31c86e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ script:
133133
| grep -q 'changed=0.*failed=0'
134134
&& (echo 'Idempotence test: pass' && exit 0)
135135
|| (echo 'Idempotence test: fail' && exit 1)
136-
- 'sudo docker exec "$(cat ${container_id})" curl http://localhost/'
136+
- 'if [${playbook} != "unit"]; then sudo docker exec "$(cat ${container_id})" curl http://localhost/; fi'
137137
- 'sudo docker rm -f "$(cat ${container_id})"'
138138
notifications:
139139
webhooks: https://galaxy.ansible.com/api/v1/notifications/

0 commit comments

Comments
 (0)