Skip to content

Commit

Permalink
commented the myql create line in the travis file
Browse files Browse the repository at this point in the history
  • Loading branch information
markbates committed Aug 15, 2016
1 parent b136ad7 commit 0dcf7ec
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
6 changes: 1 addition & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,14 @@ install:

before_script:
- go build -o tsoda ./soda
# travis hangs when trying to create mysql db using soda. not sure why
- mysql -e 'create database pop_test;'
- ./tsoda create -e "postgres"
- ./tsoda create -e "sqlite"
- ./tsoda migrate -e "mysql_travis"
- ./tsoda migrate -e "postgres"
- ./tsoda migrate -e "sqlite"
# - mysql -u travis --password= pop_test < sql_scripts/mysql-pop_test.sql
# - psql -c 'create database pop_test;' -U postgres
# - psql pop_test < sql_scripts/postgres-pop_test.sql

# script: ./test.sh
# script: ./travis.sh
script: go test ./... -v

global_env:
Expand Down
1 change: 0 additions & 1 deletion mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ func (m *MySQL) SelectMany(store Store, models *Model, query Query) error {
func (m *MySQL) CreateDB() error {
c := m.ConnectionDetails
cmd := exec.Command("mysql", "-u "+c.User, "--password"+c.Password, "-e", fmt.Sprintf("create database %s", c.Database))
fmt.Printf("### cmd -> %#v\n", cmd)
return clam.RunAndListen(cmd, func(s string) {
fmt.Println(s)
})
Expand Down

0 comments on commit 0dcf7ec

Please sign in to comment.