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

pull/219/merge
Minho 2018-03-06 14:34:39 +08:00
parent 85b6bf83a4
commit 863477644d
2 changed files with 6 additions and 3 deletions

View File

@ -11,10 +11,11 @@ before_install:
- go get github.com/garyburd/redigo/redis - go get github.com/garyburd/redigo/redis
- go get github.com/go-sql-driver/mysql - go get github.com/go-sql-driver/mysql
- go get github.com/golang/freetype - go get github.com/golang/freetype
- go get github.com/russross/blackfriday
script: script:
- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh - curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
- dep ensure - dep ensure -v
- GO_ENABLED=1 go build -v -x -tags "pam" && go install - GO_ENABLED=1 go build -v -x -tags "pam" && go install
before_deploy: before_deploy:

View File

@ -27,7 +27,7 @@ install:
Start-FileDownload "http://libgd.blob.core.windows.net/mingw/i686-4.9.1-release-posix-dwarf-rt_v3-rev1.7z" -FileName mingw_x86.7z; Start-FileDownload "http://libgd.blob.core.windows.net/mingw/i686-4.9.1-release-posix-dwarf-rt_v3-rev1.7z" -FileName mingw_x86.7z;
7z x -oC:\ mingw_x86.7z | out-null; 7z x -oC:\ mingw_x86.7z | out-null;
} }
- set PATH=%GOBIN%;%PATH% - set PATH=%GOPATH%\bin;c:\go\bin;%PATH%
- echo %PATH% - echo %PATH%
- echo %GOPATH% - echo %GOPATH%
- go version - go version
@ -37,7 +37,9 @@ 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%
- set CGO_ENABLED=1 - set CGO_ENABLED=1
- go get -u github.com/golang/dep/cmd/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)
- go install -ldflags="-X main.version=%DEP_LATEST%" ./cmd/dep
- dep ensure -v - 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)
- 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%'"