forked from Velocidex/velociraptor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
43 lines (37 loc) · 1.27 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
version: 1.0.{build}
clone_depth: 1
clone_folder: c:\velociraptor
stack: Go 1.12
environment:
GOPATH: c:\gopath
PATH: C:\msys64\mingw64\bin;%GOPATH%\bin;%PATH%
VELOCIRAPTOR_CONFIG: artifacts\testdata\windows\appveyor.config.yaml
cache:
- '%LocalAppData%\go-build'
- '%GOPATH%/pkg/mod -> go.sum'
install:
- cmd: |
echo %PATH%
echo %GOPATH%
mklink c:\Users\link c:\Windows
mkdir "C:\Program Files\Velociraptor"
- go version
- go env
- set GO111MODULE=on
- go mod download
- go mod verify
build_script:
- set GO111MODULE=on
- cmd: |
regedit /S artifacts/testdata/windows/init.reg
go get github.com/magefile/mage/mage
go run make.go -v appveyor
test_script:
- set GO111MODULE=on
- cmd: output\velociraptor.exe golden artifacts\testdata\windows\ --env srcDir=c:\velociraptor
- cmd: output\velociraptor.exe golden artifacts\testdata\server\testcases\ --env srcDir=c:\velociraptor
- cmd: go test ./...
on_finish:
- ps: Get-ChildItem artifacts/testdata/windows/*.out.yaml | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
- ps: Get-ChildItem artifacts/testdata/server/testcases/*.out.yaml | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
- ps: Get-ChildItem output/velociraptor.exe | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }