goose/.travis.yml

23 lines
877 B
YAML

sudo: false
language: go
go:
- 1.6
- tip
install:
- go get github.com/go-sql-driver/mysql
- go get github.com/lib/pq
- go get github.com/mattn/go-sqlite3
- go get github.com/ziutek/mymysql/godrv
script:
- go test
- go run ./cmd/goose/main.go -dir=example/migrations sqlite3 sql.db up
- go run ./cmd/goose/main.go -dir=example/migrations sqlite3 sql.db version
- go run ./cmd/goose/main.go -dir=example/migrations sqlite3 sql.db down
- go run ./cmd/goose/main.go -dir=example/migrations sqlite3 sql.db status
- go run ./example/migrations-go/cmd/main.go -dir=example/migrations-go sqlite3 go.db up
- go run ./example/migrations-go/cmd/main.go -dir=example/migrations-go sqlite3 go.db version
- go run ./example/migrations-go/cmd/main.go -dir=example/migrations-go sqlite3 go.db down
- go run ./example/migrations-go/cmd/main.go -dir=example/migrations-go sqlite3 go.db status