forked from Velocidex/velociraptor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
52 lines (45 loc) · 1.71 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
44
45
46
47
48
49
50
51
52
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 -> .appveyor_cache_clear'
- '%GOPATH%/pkg/mod -> .appveyor_cache_clear'
- 'gui/static/node_modules -> .appveyor_cache_clear'
- 'gui/static/dist -> .appveyor_cache_clear'
install:
- cmd: |
echo %PATH%
echo %GOPATH%
mklink c:\Users\link c:\Windows
mkdir "C:\Program Files\Velociraptor"
echo Hello > C:\hello.txt
echo HelloADS > C:\hello.txt:myads
fsutil file setshortname C:\hello.txt hi.txt
- go version
- go env
- set GO111MODULE=on
- go mod download
- go mod verify
- ps: Install-Product node 11.14 x64
- npm root -g
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 }
- ps: Get-ChildItem output/velociraptor-linux.elf | % { Push-AppveyorArtifact $_.FullName -FileName "velociraptor-linux.elf" }