From 3f098b44d3cb4c5b8b08fefd9ebde2b68e9d7a14 Mon Sep 17 00:00:00 2001 From: Hamilton Turner Date: Tue, 22 Jul 2014 14:02:42 -0400 Subject: [PATCH] Use go to debug travis-ci database --- go/setup.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/go/setup.py b/go/setup.py index b42d1169dc7..19f1122bc08 100644 --- a/go/setup.py +++ b/go/setup.py @@ -16,6 +16,10 @@ def start(self): self.sh("setup.bat") return 0 + self.sh("echo Debugging database connectivity") + self.sh("mysql --host=%s --password=benchmarkdbpass --user=benchmarkdbuser --execute=\"show databases;\"" % self.database_host) + self.sh("mysql --host=%s --password=benchmarkdbpass --user=benchmarkdbuser --execute=\"show create database hello_world;\"" % self.database_host) + self.sh("go get ./...") self.pid = self.sh_async("go run -x -v src/hello/hello.go") return 0