add .travis.yml

This commit is contained in:
liuchun 2016-03-07 10:31:56 +08:00
parent be23c42674
commit b39830dff3
1 changed files with 1 additions and 0 deletions

View File

@ -28,6 +28,7 @@ install:
- 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"
- sh -c "if [ '$ORM_DRIVER' = 'mysql' ]; then mysql -u root -e 'create database orm_test;'; fi"