Files
kubesphere/vendor/github.com/rubenv/sql-migrate/.travis.yml
Roland.Ma 7bb8124a61 pin dependencies
Signed-off-by: Roland.Ma <rolandma@yunify.com>
2021-08-27 06:37:31 +00:00

32 lines
676 B
YAML

language: go
sudo: false
go:
- "1.13"
- "1.14"
services:
- mysql
- postgresql
before_install:
- mysql -e "CREATE DATABASE IF NOT EXISTS test;" -uroot
- mysql -e "CREATE DATABASE IF NOT EXISTS test_env;" -uroot
- psql -c "CREATE DATABASE test;" -U postgres
install:
- go get -t ./...
- go install ./...
- go get -u github.com/kisielk/errcheck
script:
- CGO_ENABLED=0 go build -v .
- go test -v ./...
- bash test-integration/postgres.sh
- bash test-integration/mysql.sh
- bash test-integration/mysql-flag.sh
- bash test-integration/mysql-env.sh
- bash test-integration/sqlite.sh
- errcheck ./...