当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 0 Fork 186

cuimengqiang / godoc
暂停

forked from Minho / mindoc
暂停
 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.travis.yml 1.24 KB
一键复制 编辑 原始数据 按行查看 历史
Minho 提交于 2017-07-10 18:05 . *
language: go
go:
- 1.8
sudo: true
before_install:
- go get github.com/bradfitz/gomemcache/memcache
- go get github.com/garyburd/redigo/internal
- go get github.com/garyburd/redigo/redis
- go get github.com/go-sql-driver/mysql
- go get github.com/golang/freetype
script:
- curl https://glide.sh/get | sh
- glide update
- GO_ENABLED=1 go build -v -x -tags "pam" && go install
before_deploy:
- sudo apt-get -qq update
- CGO_ENABLED=1 GOARCH=amd64 GOOS=linux go build -o mindoc_linux_amd64 -ldflags="-w -X github.com/lifei6671/mindoc/conf.VERSION=$TRAVIS_TAG -X 'github.com/lifei6671/mindoc/conf.BUILD_TIME=`date`' -X 'conf.GO_VERSION=`github.com/lifei6671/mindoc/go version`'"
- rm -rf commands controllers models modules data routers tasks vendor docs search utils graphics .git Godeps uploads/* .gitignore .travis.yml Dockerfile gide.yaml LICENSE main.go README.md conf/enumerate.go conf/mail.go install.lock *.md
- cp conf/app.conf.example conf/app.conf
- zip -r mindoc_linux_amd64.zip conf logs static uploads views lib mindoc_linux_amd64
deploy:
provider: releases
api_key: $CI_USER_TOKEN
skip_cleanup: true
file:
- mindoc_linux_amd64.zip
on:
overwrite: true
tags: true
all_branches: true
go: 1.8
Go
1
https://gitee.com/cmqdcyy/godoc.git
git@gitee.com:cmqdcyy/godoc.git
cmqdcyy
godoc
godoc
master

搜索帮助