Travis CI is fixed at long last

2 views
Skip to first unread message

Samuel Falvo II

unread,
Jun 30, 2014, 7:28:05 PM6/30/14
to gophercloud-dev
Travis CI kept failing builds on the tip version of Go.

This is fixed.

WHY:

It turns out Go 1.3 handles directories full of "go run" scripts as a
single package, which results in a ton of "previously declared"
errors, since main() appears in every file.

FIX:

I added build tags to each acceptance test. To run any single script,
you need to invoke them via the shell like so:

go run -tags "acceptance,old" acceptance/XXX acceptance/libargs.go

Yet another reason why migrating towards "go test"-style scripts for
v0.2.0 API was a good idea. :-)

--
Samuel A. Falvo II
Reply all
Reply to author
Forward
0 new messages