Commit 33ae75b2 authored by astaxie's avatar astaxie

golint check only works on Go 1.5

parent c8bbfb75
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment