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:
parent
c8bbfb75f0
commit
33ae75b251
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user