File tree Expand file tree Collapse file tree 2 files changed +41
-0
lines changed Expand file tree Collapse file tree 2 files changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ @ echo off
2+ if not exist .\build\win-ci-compile.bat (
3+ echo This script must be run from the root of the repository.
4+ exit /b
5+ )
6+ if not defined GOPATH (
7+ echo GOPATH is not set.
8+ exit /b
9+ )
10+
11+ set GOPATH = %GOPATH% ;%cd% \Godeps\_workspace
12+ set GOBIN = %cd% \build\bin
13+
14+ rem set gitCommit when running from a Git checkout.
15+ set goLinkFlags = " "
16+ if exist " .git\HEAD" (
17+ where /q git
18+ if not errorlevel 1 (
19+ for /f %%h in ('git rev-parse HEAD') do (
20+ set goLinkFlags = " -X main.gitCommit=%%h "
21+ )
22+ )
23+ )
24+
25+ @ echo on
26+ go install -v -ldflags %goLinkFlags% ./...
Original file line number Diff line number Diff line change 1+ @ echo off
2+ if not exist .\build\win-ci-test.bat (
3+ echo This script must be run from the root of the repository.
4+ exit /b
5+ )
6+ if not defined GOPATH (
7+ echo GOPATH is not set.
8+ exit /b
9+ )
10+
11+ set GOPATH = %GOPATH% ;%cd% \Godeps\_workspace
12+ set GOBIN = %cd% \build\bin
13+
14+ @ echo on
15+ go test ./...
You can’t perform that action at this time.
0 commit comments