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

bradleyfalzon / gopherci / 98
58%
master: 61%

Build:
Build:
LAST BUILD BRANCH: review-no-approve
DEFAULT BRANCH: master
Ran 28 Jan 2017 04:20AM UTC
Jobs 1
Files 13
Run time 0s
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
98

push

travis-ci

bradleyfalzon
Clone to import path in /home/bradleyf/go/src/

Currently we clone into $GOPATH/src/gopherci but any project that
imports sub packages in the same repository, would have those
dependencies go get'd (go got?).

If the project imported internal packages, those couldn't be built
at all with the error `use of internal package not allowed`.

This fix attempts to guess the import path, based on the URL by:

- Getting the base repo's HTML URL `https://github.com/owner/repo`
- Strippping the scheme `github.com/owner/repo`
- Docker or file system executer runs command with that as the
working directory
- All clones, tools etc, are then executed in the repositories
working directory, which should be $GOPATH/src/github.com/owner/repo

I'm not a big fan of this is done (just stripping the scheme), but
the only edge case I can forsee are those with vanity import paths,
and it's not clear how to handle them right now, potentially
automated or potentially it could be configuration option per repo.

The other edgecases will come if GitHub changes URL structure or
we support other providers where the import path is not clear, both
of which can be dealt with at the time.

Fixes #16.

456 of 783 relevant lines covered (58.24%)

1.29 hits per line

Jobs
ID Job ID Ran Files Coverage
1 98.1 (GOOGLE_APPLICATION_CREDENTIALS=/tmp/gcloud-GopherCI-dev.json) 28 Jan 2017 04:20AM UTC 0
58.24
Travis Job 98.1
Source Files on build 98
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #98
  • d2d6d89a on github
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