切换包管理工具并升级依赖包

pull/219/merge
Minho 2018-03-06 14:45:34 +08:00
parent 6461996345
commit 7313ef7209
2 changed files with 2 additions and 2 deletions

View File

@ -38,4 +38,4 @@ deploy:
overwrite: true overwrite: true
tags: true tags: true
all_branches: true all_branches: true
go: 1.9.2 go: "1.10"

View File

@ -40,9 +40,9 @@ build_script:
- go get -u github.com/golang/dep/cmd/dep && cd %GOPATH%/src/github.com/golang/dep - go get -u github.com/golang/dep/cmd/dep && cd %GOPATH%/src/github.com/golang/dep
- for /f "delims=" %%i in ('git describe --abbrev=0 --tags') do (set DEP_LATEST=%%i) - for /f "delims=" %%i in ('git describe --abbrev=0 --tags') do (set DEP_LATEST=%%i)
- go install -ldflags="-X main.version=%DEP_LATEST%" ./cmd/dep - go install -ldflags="-X main.version=%DEP_LATEST%" ./cmd/dep
- dep ensure -v
- for /f "delims=" %%i in ('go version') do (set GO_VERSION=%%i) - for /f "delims=" %%i in ('go version') do (set GO_VERSION=%%i)
- cd c:\gopath\src\github.com\lifei6671\mindoc - cd c:\gopath\src\github.com\lifei6671\mindoc
- dep ensure -v
- go build -v -o "mindoc_windows_%GOARCH%.exe" -ldflags="-w -X github.com/lifei6671/mindoc/conf.VERSION=%APPVEYOR_REPO_TAG_NAME% -X 'github.com/lifei6671/mindoc/conf.BUILD_TIME=%date% %time%' -X 'conf.GO_VERSION=%GO_VERSION%'" - go build -v -o "mindoc_windows_%GOARCH%.exe" -ldflags="-w -X github.com/lifei6671/mindoc/conf.VERSION=%APPVEYOR_REPO_TAG_NAME% -X 'github.com/lifei6671/mindoc/conf.BUILD_TIME=%date% %time%' -X 'conf.GO_VERSION=%GO_VERSION%'"
- 7z a -t7z -r mindoc_windows_%GOARCH%.7z conf/*.conf* static/* mindoc_windows_%GOARCH%.exe views/* uploads/* - 7z a -t7z -r mindoc_windows_%GOARCH%.7z conf/*.conf* static/* mindoc_windows_%GOARCH%.exe views/* uploads/*
test_script: test_script: