1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 19:50:56 +00:00

make sure works for travis

This commit is contained in:
astaxie 2016-03-21 11:10:57 +08:00
parent 142f4c9f42
commit f2ed27cc8f

View File

@ -1,10 +1,8 @@
language: go language: go
go: go:
- tip - 1.6
- 1.6.0
- 1.5.3 - 1.5.3
- 1.4.3
services: services:
- redis-server - redis-server
- mysql - mysql
@ -19,7 +17,6 @@ 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
@ -34,6 +31,7 @@ install:
- 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/ssdb/gossdb/ssdb - go get github.com/ssdb/gossdb/ssdb
- go get github.com/golang/lint/golint
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"
- sh -c "if [ '$ORM_DRIVER' = 'mysql' ]; then mysql -u root -e 'create database orm_test;'; 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/* - rm -rf ./res/var/*
script: script:
- go vet -x ./... - go vet -x ./...
- '[[ $(go version) == *1.[5-9]* ]] && $HOME/gopath/bin/golint ./...' - golint ./...'
- go test -v ./... - go test -v ./...
notifications:
webhooks: https://hooks.pubu.im/services/z7m9bvybl3rgtg9