1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 14:00:54 +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 - cd ssdb
- make - make
- cd .. - cd ..
- '[[ $(go version) == *1.[5-9]* ]] && go get github.com/golang/lint/golint'
install: install:
- go get github.com/lib/pq - go get github.com/lib/pq
- go get github.com/go-sql-driver/mysql - 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/config
- go get github.com/siddontang/ledisdb/ledis - go get github.com/siddontang/ledisdb/ledis
- go get golang.org/x/tools/cmd/vet - go get golang.org/x/tools/cmd/vet
- go get github.com/golang/lint/golint
- go get github.com/ssdb/gossdb/ssdb - go get github.com/ssdb/gossdb/ssdb
before_script: before_script:
- sh -c "if [ '$ORM_DRIVER' = 'postgres' ]; then psql -c 'create database orm_test;' -U postgres; fi" - 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/* - rm -rf ./res/var/*
script: script:
- go vet -x ./... - go vet -x ./...
- $HOME/gopath/bin/golint ./... - '[[ $(go version) == *1.[5-9]* ]] && $HOME/gopath/bin/golint ./...'
- go test -v ./... - go test -v ./...
notifications: notifications:
webhooks: https://hooks.pubu.im/services/z7m9bvybl3rgtg9 webhooks: https://hooks.pubu.im/services/z7m9bvybl3rgtg9