pull/51/head
lifei6671 2017-05-30 21:34:38 +08:00
parent 71e6a0294a
commit 65ec886c69
1 changed files with 15 additions and 3 deletions

View File

@ -42,14 +42,26 @@ install:
build_script: build_script:
- if [%tbs_tools%]==[mingw] if [%tbs_arch%]==[x86] SET PATH=C:\mingw32\bin;%PATH% - if [%tbs_tools%]==[mingw] if [%tbs_arch%]==[x86] SET PATH=C:\mingw32\bin;%PATH%
- if [%tbs_tools%]==[mingw] if [%tbs_arch%]==[x64] SET PATH=C:\mingw64\bin;%PATH% - if [%tbs_tools%]==[mingw] if [%tbs_arch%]==[x64] SET PATH=C:\mingw64\bin;%PATH%
- if [%tbs_arch%]==[x86] SET GOARCH=386
- go build -v -o "godoc_windows_%GOARCH%.exe" -ldflags="-w -X github.com/lifei6671/godoc/conf.VERSION=%APPVEYOR_REPO_TAG_NAME% -X 'github.com/lifei6671/godoc/conf.BUILD_TIME=`date`' -X 'conf.GO_VERSION=`github.com/lifei6671/godoc/go version`'" - go build -v -o "godoc_windows_%GOARCH%.exe" -ldflags="-w -X github.com/lifei6671/godoc/conf.VERSION=%APPVEYOR_REPO_TAG_NAME% -X 'github.com/lifei6671/godoc/conf.BUILD_TIME=`date`' -X 'conf.GO_VERSION=`github.com/lifei6671/godoc/go version`'"
- rd /q /f /s 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
- 7z a -t7z -r godoc_windows_%GOARCH%.7z conf/app.conf static/* godoc_windows_%GOARCH%.exe views/* database/* logs/* uploads/*
test_script: test_script:
- godoc_windows_%GOARCH%.exe version - godoc_windows_%GOARCH%.exe version
- dir
notifications: notifications:
- provider: Email - provider: Email
to: to:
- lifei6671@163.com - lifei6671@163.com
on_build_success: false on_build_success: false
deploy:
- provider: GitHub
name: production
auth_token:
secure:
draft: false
artifact:
on:
branch: master
appveyor_repo_tag: true