add travis

This commit is contained in:
lealife
2015-09-11 18:34:38 +08:00
parent 7167705409
commit dada88d8a2

14
.travis.yml Normal file
View File

@ -0,0 +1,14 @@
language: go
go: 1.3
services:
- mongodb # 2.4.12
install:
- export PATH=$PATH:$HOME/gopath/bin
- go get -v github.com/leanote/leanote
script:
- mongo --version
- mongorestore -h localhost -d leanote --directoryperdb ./mongodb_backup/leanote_install_data/
- go test github.com/leanote/leanote/tests