Skip to content

Commit

Permalink
Use go to debug travis-ci database
Browse files Browse the repository at this point in the history
  • Loading branch information
hamiltont committed Jul 22, 2014
1 parent 07fcec5 commit 3f098b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions go/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3f098b4

Please sign in to comment.