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

pull/219/merge
Minho 2018-03-06 15:08:27 +08:00
parent a7be114c6a
commit b01082a143
2 changed files with 2 additions and 4 deletions

View File

@ -20,8 +20,7 @@ script:
before_deploy: before_deploy:
- sudo apt-get -qq update - sudo apt-get -qq update
- dep ensure -v - dep ensure -v && 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`'"
- 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 Gopkg.toml LICENSE main.go README.md conf/enumerate.go conf/mail.go install.lock *.md - rm -rf commands controllers models modules data routers tasks vendor docs search utils graphics .git Godeps uploads/* .gitignore .travis.yml Dockerfile Gopkg.toml LICENSE main.go README.md conf/enumerate.go conf/mail.go install.lock *.md
- cp conf/app.conf.example conf/app.conf - cp conf/app.conf.example conf/app.conf
- zip -r mindoc_linux_amd64.zip conf logs static uploads views lib mindoc_linux_amd64 - zip -r mindoc_linux_amd64.zip conf logs static uploads views lib mindoc_linux_amd64

View File

@ -38,8 +38,7 @@ build_script:
- 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%
- set CGO_ENABLED=1 - set CGO_ENABLED=1
- 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') do (set DEP_LATEST=%%i) - go install -ldflags="-X main.version=" ./cmd/dep
- go install -ldflags="-X main.version=%DEP_LATEST%" ./cmd/dep
- 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 - dep ensure -v