Files
leanote/.travis.yml

36 lines
900 B
YAML
Raw Normal View History

2015-09-11 18:34:38 +08:00
language: go
2017-06-21 18:09:53 +08:00
go: 1.7
2015-09-11 18:34:38 +08:00
services:
- mongodb # 2.4.12
install:
- export PATH=$PATH:$HOME/gopath/bin
2015-09-11 18:41:47 +08:00
- go get -v github.com/leanote/leanote/app
2015-09-18 12:55:57 +08:00
- go get -u github.com/revel/cmd/revel
2015-09-18 13:10:23 +08:00
- ls $GOPATH/src/github.com/revel/
2015-09-18 12:55:57 +08:00
# - go get github.com/revel/moudle/revel
2015-09-13 21:53:01 +08:00
# - go install github.com/revel/cmd/revel
2015-09-18 12:55:57 +08:00
- pwd
2015-09-18 11:35:17 +08:00
- ls
2015-09-11 18:34:38 +08:00
script:
- mongo --version
2017-11-30 19:14:42 +08:00
- mongorestore -h localhost -d leanote --dir ./mongodb_backup/leanote_install_data/
2015-09-18 11:23:00 +08:00
2015-09-18 11:30:38 +08:00
# gen tmp/main.go, routes/routes.go
- go run app/cmd/main.go
# build
2015-09-18 11:23:00 +08:00
- go build -o leanote github.com/leanote/leanote/app/tmp
2015-09-18 11:30:38 +08:00
# run with port 9000
2015-09-18 13:44:25 +08:00
- ./leanote -importPath=github.com/leanote/leanote -runMode=dev -port=9000 &
2015-09-18 13:48:06 +08:00
- sleep 10s;
2015-09-18 11:30:38 +08:00
# test
2015-09-18 11:38:55 +08:00
- curl http://localhost:9000
- curl http://localhost:9000/blog
- curl http://localhost:9000/login
- curl http://localhost:9000/demo
2015-09-18 11:23:00 +08:00
2015-09-13 21:53:01 +08:00
# - revel build github.com/leanote/leanote tmp
2017-06-21 18:09:53 +08:00
# OK