to support automated testing of postgres

This commit is contained in:
wenzi1
2019-08-12 16:57:08 +08:00
parent 9a057b757d
commit b960faec45

View File

@ -16,8 +16,10 @@ env:
services:
- mysql
- redis-server
- postgresql
addons:
postgresql: "9.4"
hosts:
- local
@ -30,6 +32,7 @@ install:
before_script:
- find . -name "*.go" | xargs gofmt -w
- git diff --name-only --exit-code || exit 1
- psql -c 'create database travis_ci_test;' -U postgres
script:
- GOARCH=386 go test -v ./... || exit 1