你如何为 TravisCI 的主机插件指定 IP 地址?
How do you specify IP addresses for TravisCI's host addon?
If your build requires setting up custom hostnames, you can specify a
single host or a list of them in your .travis.yml. Travis CI will
automatically setup the hostnames in /etc/hosts for both IPv4 and
IPv6.
但是它并没有说指定IP地址。它还没有说明主机名的格式。是否可以指定一个简单的别名,例如 myhostnamealias
或者它是否需要 FQDN?至少 CircleCI 提到它使用 FQDN(虽然我不知道为什么存在该规定,但这是一个单独的问题。)
谢谢,
罗宾.
通过实验我发现
中提供的主机列表
addons:
hosts:
- travis.dev
- joshkalderimis.com
都被设置为指向 127.0.0.1
等同于 /etc/hosts
条目,如下所示:
127.0.0.1 travis.dev
127.0.0.1 joshkalderimis.com
If your build requires setting up custom hostnames, you can specify a single host or a list of them in your .travis.yml. Travis CI will automatically setup the hostnames in /etc/hosts for both IPv4 and IPv6.
但是它并没有说指定IP地址。它还没有说明主机名的格式。是否可以指定一个简单的别名,例如 myhostnamealias
或者它是否需要 FQDN?至少 CircleCI 提到它使用 FQDN(虽然我不知道为什么存在该规定,但这是一个单独的问题。)
谢谢, 罗宾.
通过实验我发现
中提供的主机列表addons:
hosts:
- travis.dev
- joshkalderimis.com
都被设置为指向 127.0.0.1
等同于 /etc/hosts
条目,如下所示:
127.0.0.1 travis.dev
127.0.0.1 joshkalderimis.com