• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ICRAR / ngas / 283
65%
master: 69%

Build:
Build:
LAST BUILD BRANCH: config_use_prepared_stmts_for_clients
DEFAULT BRANCH: master
Ran 13 Mar 2019 09:18AM UTC
Jobs 6
Files 161
Run time 11min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
283

push

travis-ci

rtobar
Generating consistent hostname in Travis's MacOS

It turns out that using `hostname <X>` to set the hostname doesn't
produce a consistent state after which one can reliably get the same
hostname out of the different socket-related hostname functions. I'm not
entirely sure why this is the case, but there are people online claiming
it had to do with flushing DNS caches and similar things. In particular
there are other people experiencing this same sort of behaviour in
python@MacOS when plugging their computers to some network.

Anyway, the de-facto workaround for this situations seems unanimously to
explicitly set the HostName system configuration setting via the scutil
tool. To make sure things are working I'm not only adding this extra
call, but also printing to the screen (just for debugging) the output
from several hostname-querying python functions and tools.

Signed-off-by: Rodrigo Tobar <rtobar@icrar.org>

12466 of 19204 relevant lines covered (64.91%)

3.88 hits per line

Jobs
ID Job ID Ran Files Coverage
1 283.1 (DB=sqlite3) 13 Mar 2019 09:19AM UTC 0
64.7
Travis Job 283.1
2 283.2 (DB=mysql) 13 Mar 2019 09:20AM UTC 0
64.7
Travis Job 283.2
3 283.3 (DB=postgresql) 13 Mar 2019 09:19AM UTC 0
64.71
Travis Job 283.3
5 283.5 13 Mar 2019 09:18AM UTC 0
64.68
Travis Job 283.5
6 283.6 13 Mar 2019 09:29AM UTC 0
64.75
Travis Job 283.6
7 283.7 13 Mar 2019 09:29AM UTC 0
64.75
Travis Job 283.7
Source Files on build 283
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #283
  • 9a568110 on github
  • Prev Build on macos-hostnames (#282)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc