From b01082a143c49670dfbfe8b615930d1a3ecc030d Mon Sep 17 00:00:00 2001 From: Minho Date: Tue, 6 Mar 2018 15:08:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=87=E6=8D=A2=E5=8C=85=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=B7=A5=E5=85=B7=E5=B9=B6=E5=8D=87=E7=BA=A7=E4=BE=9D=E8=B5=96?= =?UTF-8?q?=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .travis.yml | 3 +-- appveyor.yml | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index c3a5ab64..86e2f69f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,8 +20,7 @@ script: before_deploy: - sudo apt-get -qq update - - 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`'" + - 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`'" - 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 - zip -r mindoc_linux_amd64.zip conf logs static uploads views lib mindoc_linux_amd64 diff --git a/appveyor.yml b/appveyor.yml index 18f37c4a..3812d130 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -38,8 +38,7 @@ build_script: - if [%tbs_tools%]==[mingw] if [%tbs_arch%]==[x64] SET PATH=C:\mingw64\bin;%PATH% - set CGO_ENABLED=1 - 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=%DEP_LATEST%" ./cmd/dep + - go install -ldflags="-X main.version=" ./cmd/dep - for /f "delims=" %%i in ('go version') do (set GO_VERSION=%%i) - cd c:\gopath\src\github.com\lifei6671\mindoc - dep ensure -v