1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-25 21:01:31 +00:00

golint check only works on Go 1.5

This commit is contained in:
astaxie 2016-03-21 08:50:56 +08:00
parent c8bbfb75f0
commit 33ae75b251

View File

@ -19,6 +19,7 @@ before_install:
- cd ssdb
- make
- cd ..
- '[[ $(go version) == *1.[5-9]* ]] && go get github.com/golang/lint/golint'
install:
- go get github.com/lib/pq
- go get github.com/go-sql-driver/mysql
@ -32,7 +33,6 @@ install:
- go get github.com/siddontang/ledisdb/config
- go get github.com/siddontang/ledisdb/ledis
- go get golang.org/x/tools/cmd/vet
- go get github.com/golang/lint/golint
- go get github.com/ssdb/gossdb/ssdb
before_script:
- sh -c "if [ '$ORM_DRIVER' = 'postgres' ]; then psql -c 'create database orm_test;' -U postgres; fi"
@ -45,7 +45,7 @@ after_script:
- rm -rf ./res/var/*
script:
- go vet -x ./...
- $HOME/gopath/bin/golint ./...
- '[[ $(go version) == *1.[5-9]* ]] && $HOME/gopath/bin/golint ./...'
- go test -v ./...
notifications:
webhooks: https://hooks.pubu.im/services/z7m9bvybl3rgtg9