mirror of
https://github.com/astaxie/beego.git
synced 2024-11-25 20:10:56 +00:00
make sure works for travis
This commit is contained in:
parent
142f4c9f42
commit
f2ed27cc8f
10
.travis.yml
10
.travis.yml
@ -1,10 +1,8 @@
|
||||
language: go
|
||||
|
||||
go:
|
||||
- tip
|
||||
- 1.6.0
|
||||
- 1.6
|
||||
- 1.5.3
|
||||
- 1.4.3
|
||||
services:
|
||||
- redis-server
|
||||
- mysql
|
||||
@ -19,7 +17,6 @@ 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
|
||||
@ -34,6 +31,7 @@ install:
|
||||
- go get github.com/siddontang/ledisdb/ledis
|
||||
- go get golang.org/x/tools/cmd/vet
|
||||
- go get github.com/ssdb/gossdb/ssdb
|
||||
- go get github.com/golang/lint/golint
|
||||
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"
|
||||
@ -45,7 +43,5 @@ after_script:
|
||||
- rm -rf ./res/var/*
|
||||
script:
|
||||
- go vet -x ./...
|
||||
- '[[ $(go version) == *1.[5-9]* ]] && $HOME/gopath/bin/golint ./...'
|
||||
- golint ./...'
|
||||
- go test -v ./...
|
||||
notifications:
|
||||
webhooks: https://hooks.pubu.im/services/z7m9bvybl3rgtg9
|
||||
|
Loading…
Reference in New Issue
Block a user