travis: pin go-sql-driver/mysql to v1.3 for 1.6 builds
go-sql-driver/mysql won't retain support for 1.6, and the only people using 1.6
are opted-in on GAE. (api_version: go1.6)
Pin the version to keep the tests running.
@@ -62,11 +62,18 @@ before_install:
install:
# Install all external dependencies, ensuring they are updated.
-- go get -u -v $(go list -f '{{join .Imports "\n"}}{{"\n"}}{{join .TestImports "\n"}}' ./... | sort | uniq | grep -v golang-samples)
+- GO_IMPORTS=$(go list -f '{{join .Imports "\n"}}{{"\n"}}{{join .TestImports "\n"}}' ./... | sort | uniq | grep -v golang-samples)
+- go get -u -v -d $GO_IMPORTS
+# pin go-sql-driver/mysql to v1.3 (which supports Go 1.6)
+- if go version | grep go1\.6\.; then
+ pushd $GOPATH/src/github.com/go-sql-driver/mysql;
+ git checkout v1.3;
+ popd;
+ fi
+- go install -v $GO_IMPORTS
- go get -u -v github.com/rakyll/gotest
- export CI=TRAVIS # for gotest to force colors
-
script:
- travis_wait 20 gotest -p 10 -timeout 20m -v ./...;
- if [ $SYSTEM_TESTS ]; then
