2015-09-11 18:34:38 +08:00
|
|
|
language: go
|
|
|
|
go: 1.3
|
|
|
|
|
|
|
|
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 11:35:17 +08:00
|
|
|
|
2015-09-13 21:53:01 +08:00
|
|
|
# - go get github.com/revel/cmd/revel
|
|
|
|
# - go install github.com/revel/cmd/revel
|
2015-09-18 11:35:17 +08:00
|
|
|
- pwd
|
|
|
|
- ls
|
2015-09-11 18:34:38 +08:00
|
|
|
|
|
|
|
script:
|
|
|
|
- mongo --version
|
|
|
|
- mongorestore -h localhost -d leanote --directoryperdb ./mongodb_backup/leanote_install_data/
|
2015-09-18 11:23:00 +08:00
|
|
|
|
2015-09-16 11:14:29 +08:00
|
|
|
- go test github.com/leanote/leanote/app/tests
|
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 11:23:00 +08:00
|
|
|
- ./leanote -importPath=github.com/leanote/leanote -runMode=dev -port=9000 &
|
2015-09-18 11:30:38 +08:00
|
|
|
# test
|
2015-09-18 11:23:00 +08:00
|
|
|
- wget http://localhost:9000
|
2015-09-18 11:30:38 +08:00
|
|
|
- wget http://localhost:9000/blog
|
|
|
|
- wget http://localhost:9000/login
|
|
|
|
- wget 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
|
2015-09-11 18:36:51 +08:00
|
|
|
# OK
|