1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-13 17:41:01 +00:00

Merge pull request #3149 from liaoishere/feature/support-begintx

Support DB.BeginTx in go 1.8
This commit is contained in:
astaxie
2018-07-23 20:25:17 +08:00
committed by GitHub
6 changed files with 107 additions and 8 deletions

View File

@ -1,7 +1,7 @@
language: go
go:
- "1.9.2"
- "1.9.7"
- "1.10.3"
services:
- redis-server
@ -44,8 +44,8 @@ before_script:
- sh -c "if [ '$ORM_DRIVER' = 'postgres' ]; then psql -c 'create database orm_test;' -U postgres; fi"
- sh -c "if [ '$ORM_DRIVER' = 'mysql' ]; then mysql -u root -e 'create database orm_test;'; fi"
- sh -c "if [ '$ORM_DRIVER' = 'sqlite' ]; then touch $TRAVIS_BUILD_DIR/orm_test.db; fi"
- sh -c "if [ $(go version) == *1.[5-9]* ]; then go get github.com/golang/lint/golint; golint ./...; fi"
- sh -c "if [ $(go version) == *1.[5-9]* ]; then go tool vet .; fi"
- sh -c "go get github.com/golang/lint/golint; golint ./...;"
- sh -c "go tool vet ."
- mkdir -p res/var
- ./ssdb/ssdb-server ./ssdb/ssdb.conf -d
after_script:
@ -59,4 +59,4 @@ script:
- find . ! \( -path './vendor' -prune \) -type f -name '*.go' -print0 | xargs -0 gofmt -l -s
- golint ./...
addons:
postgresql: "9.4"
postgresql: "9.6"