How do you specify the IP addresses for the TravisCI host?

According to TravisCI docs ,

If your assembly requires custom host names, you can specify a single host or a list of them in your .travis.yml. Travis CI will automatically configure host names in / etc / hosts for both IPv4 and IPv6.

But he does not say anything about specifying IP addresses. It also says nothing about the hostname format. Is it possible to specify a simple alias, for example myhostnamealias or is a fully qualified domain name required? At least CircleCI mentions that it uses a fully qualified domain name (although I don’t know why this condition exists, but this is a separate issue.)

Thanks Robin.

+6
source share
1 answer

In the experiment, I found out that the list of hosts provided in

 addons: hosts: - travis.dev - joshkalderimis.com 

all are configured to point to 127.0.0.1 , equivalent to /etc/hosts following elements:

 127.0.0.1 travis.dev 127.0.0.1 joshkalderimis.com 
+5
source

All Articles