mirror of https://github.com/pressly/goose.git
Remove go build -i flag
parent
e1b59f5cd0
commit
a407efa898
|
@ -22,7 +22,7 @@ func TestFix(t *testing.T) {
|
||||||
defer os.Remove("./bin/fix-goose") // clean up
|
defer os.Remove("./bin/fix-goose") // clean up
|
||||||
|
|
||||||
commands := []string{
|
commands := []string{
|
||||||
"go build -i -o ./bin/fix-goose ./cmd/goose",
|
"go build -o ./bin/fix-goose ./cmd/goose",
|
||||||
fmt.Sprintf("./bin/fix-goose -dir=%s create create_table", dir),
|
fmt.Sprintf("./bin/fix-goose -dir=%s create create_table", dir),
|
||||||
fmt.Sprintf("./bin/fix-goose -dir=%s create add_users", dir),
|
fmt.Sprintf("./bin/fix-goose -dir=%s create add_users", dir),
|
||||||
fmt.Sprintf("./bin/fix-goose -dir=%s create add_indices", dir),
|
fmt.Sprintf("./bin/fix-goose -dir=%s create add_indices", dir),
|
||||||
|
|
|
@ -13,7 +13,7 @@ func TestDefaultBinary(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|
||||||
commands := []string{
|
commands := []string{
|
||||||
"go build -i -o ./bin/goose ./cmd/goose",
|
"go build -o ./bin/goose ./cmd/goose",
|
||||||
"./bin/goose -dir=examples/sql-migrations sqlite3 sql.db up",
|
"./bin/goose -dir=examples/sql-migrations sqlite3 sql.db up",
|
||||||
"./bin/goose -dir=examples/sql-migrations sqlite3 sql.db version",
|
"./bin/goose -dir=examples/sql-migrations sqlite3 sql.db version",
|
||||||
"./bin/goose -dir=examples/sql-migrations sqlite3 sql.db down",
|
"./bin/goose -dir=examples/sql-migrations sqlite3 sql.db down",
|
||||||
|
@ -52,7 +52,7 @@ func TestLiteBinary(t *testing.T) {
|
||||||
|
|
||||||
// this has to be done outside of the loop
|
// this has to be done outside of the loop
|
||||||
// since go only supports space separated tags list.
|
// since go only supports space separated tags list.
|
||||||
cmd := exec.Command("go", "build", "-tags='no_mysql no_sqlite no_psql'", "-i", "-o", "./bin/light-goose", "./cmd/goose")
|
cmd := exec.Command("go", "build", "-tags='no_mysql no_sqlite no_psql'", "-o", "./bin/light-goose", "./cmd/goose")
|
||||||
out, err := cmd.CombinedOutput()
|
out, err := cmd.CombinedOutput()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("%s:\n%v\n\n%s", err, cmd, out)
|
t.Fatalf("%s:\n%v\n\n%s", err, cmd, out)
|
||||||
|
@ -78,7 +78,7 @@ func TestCustomBinary(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|
||||||
commands := []string{
|
commands := []string{
|
||||||
"go build -i -o ./bin/custom-goose ./examples/go-migrations",
|
"go build -o ./bin/custom-goose ./examples/go-migrations",
|
||||||
"./bin/custom-goose -dir=examples/go-migrations sqlite3 go.db up",
|
"./bin/custom-goose -dir=examples/go-migrations sqlite3 go.db up",
|
||||||
"./bin/custom-goose -dir=examples/go-migrations sqlite3 go.db version",
|
"./bin/custom-goose -dir=examples/go-migrations sqlite3 go.db version",
|
||||||
"./bin/custom-goose -dir=examples/go-migrations sqlite3 go.db down",
|
"./bin/custom-goose -dir=examples/go-migrations sqlite3 go.db down",
|
||||||
|
|
Loading…
Reference in New Issue