1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 14:20:54 +00:00

update travis

This commit is contained in:
astaxie 2016-03-21 11:18:38 +08:00
parent f2ed27cc8f
commit 630f77bca3

View File

@ -3,6 +3,7 @@ language: go
go:
- 1.6
- 1.5.3
- 1.4.3
services:
- redis-server
- mysql
@ -31,11 +32,11 @@ 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"
- sh -c "if [ '$ORM_DRIVER' = 'sqlite' ]; then touch $TRAVIS_BUILD_DIR/orm_test.db; fi"
- sh -c "if [ $(go version) == *1.[5-9]* ]; then go get github.com/golang/lint/golint; golint ./...; fi"
- mkdir -p res/var
- ./ssdb/ssdb-server ./ssdb/ssdb.conf -d
after_script:
@ -43,5 +44,4 @@ after_script:
- rm -rf ./res/var/*
script:
- go vet -x ./...
- golint ./...'
- go test -v ./...