2016-01-15 05:26:54 +00:00
|
|
|
version: '{build}'
|
|
|
|
os: Windows Server 2012 R2
|
|
|
|
clone_folder: c:\gopath\src\github.com\derekparker\delve
|
|
|
|
environment:
|
2016-01-30 21:27:08 +00:00
|
|
|
GOPATH: C:\gopath
|
2016-01-15 05:26:54 +00:00
|
|
|
install:
|
|
|
|
- ps: |
|
|
|
|
# Install MinGW.
|
|
|
|
if (-Not (Test-Path "C:\mingw64")) {
|
|
|
|
$file = "x86_64-4.9.2-release-win32-seh-rt_v4-rev3.7z"
|
|
|
|
$url = "https://bintray.com/artifact/download/drewwells/generic/"
|
|
|
|
$url += $file
|
|
|
|
Invoke-WebRequest -UserAgent wget -Uri $url -OutFile $file
|
|
|
|
&7z x -oC:\ $file > $null
|
|
|
|
}
|
2018-10-16 10:48:59 +00:00
|
|
|
# Install Procdump
|
|
|
|
if (-Not (Test-Path "C:\procdump")) {
|
|
|
|
mkdir c:\procdump
|
|
|
|
Invoke-WebRequest -UserAgent wget -Uri https://download.sysinternals.com/files/Procdump.zip -OutFile C:\procdump\procdump.zip
|
|
|
|
&7z x -oC:\procdump\ C:\procdump\procdump.zip > $null
|
|
|
|
}
|
|
|
|
- set PATH=c:\procdump;c:\mingw64\bin;%GOPATH%\bin;%PATH%
|
2016-01-15 05:26:54 +00:00
|
|
|
- echo %PATH%
|
|
|
|
- echo %GOPATH%
|
|
|
|
- go version
|
|
|
|
- go env
|
2018-10-16 10:48:59 +00:00
|
|
|
cache:
|
|
|
|
- C:\mingw64
|
|
|
|
- C:\procdump
|
2016-01-15 05:26:54 +00:00
|
|
|
build_script:
|
|
|
|
- mingw32-make install
|
|
|
|
test_script:
|
2017-05-26 18:46:25 +00:00
|
|
|
- mingw32-make test
|