Skip to content

Commit ddd8dce

Browse files
committed
there is an officially supported mechanism to add hostnames in Travis CI
1 parent fdbe61e commit ddd8dce

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ rvm:
99
- jruby-head
1010
- rbx-2
1111

12+
addons:
13+
hosts:
14+
- ldap.example.org # needed for TLS verification
15+
1216
services:
1317
- docker
1418

@@ -17,7 +21,6 @@ env:
1721

1822
before_install:
1923
- gem update bundler
20-
- echo "127.0.0.1 ldap.example.org" >> /etc/hosts # needed for TLS verification
2124

2225
install:
2326
- docker run --hostname ldap.example.org --env LDAP_TLS_VERIFY_CLIENT=try -p 389:389 -p 636:636 -v $(pwd)/test/fixtures/seed.ldif:/container/service/slapd/assets/config/bootstrap/ldif/50-bootstrap.ldif --name openldap osixia/openldap:1.3.0 --copy-service --loglevel debug

0 commit comments

Comments
 (0)