forked from Fantom-foundation/go-lachesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
79 lines (65 loc) · 2.07 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version: 0.4.5-rc1#{build}
image: Visual Studio 2017
skip_tags: true
max_jobs: 1
build: off
clone_folder: C:\gopath\src\github.com\Fantom-foundation\go-lachesis
# shallow_clone when true, acquires repository as zip archive
shallow_clone: false
clone_depth: 5
environment:
TARGET_OS: windows
GOOS: windows
GOARCH: amd64
GOPATH: C:\gopath
#RM: del
#RM_FLAGS: /f
GLIDE: /c/usr/bin/glide.exe
SED: /c/PROGRA~1/Git/sed.exe
n: 3
logshold: '-1,-1,-1,5,0,0'
entry: 'main'
BUILD_DIR: "%APPVEYOR_BUILD_FOLDER%"
PATH: C:\gopath\bin;C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin;C:\PROGRA~1\Git\bin;C:\PROGRA~1\Git\usr\bin\;C:\ProgramData\chocolatey\bin;$(PATH)
stack: go 1.12
# scripts that are called at very beginning, before repo cloning
init:
- cmd: md C:\usr\bin\ C:\usr\downloads\
- cmd: cd C:\usr\downloads
- cmd: curl -L https://github.com/Masterminds/glide/releases/download/v0.13.2/glide-v0.13.2-windows-amd64.zip -o glide-windows-amd64.zip
- cmd: 7z x glide-windows-amd64.zip
- cmd: move windows-amd64\glide.exe C:\usr\bin\
- cmd: choco install make sed protoc git.install jq mingw
- cmd: rmdir /s /q "%APPVEYOR_BUILD_FOLDER%"
- cmd: md "%APPVEYOR_BUILD_FOLDER%"
- cmd: cd "%APPVEYOR_BUILD_FOLDER%"
- cmd: go get -u github.com/SamuelMarks/batch-ethkey
- cmd: go get -u golang.org/x/tools/go/packages github.com/golang/protobuf/protoc-gen-go
- cmd: go get github.com/golang/mock/gomock
- cmd: go install github.com/golang/mock/mockgen
cache:
- '%HOMEPATH%\.glide'
- C:\usr
- C:\ProgramData\chocolatey
- C:\PROGRA~1\Git
#before_build:
# - cmd: make clean proto vendor build
#install:
# - cmd: cd "%APPVEYOR_BUILD_FOLDER%"
# - cmd: bash scripts\multi.bash
test_script:
- cmd: make clean proto vendor build test
platform: x64
configuration: Release
#notifications:
# # Slack
# - provider: Slack
# incoming_webhook: http://incoming-webhook-url
#
# # ...or using auth token
#
# - provider: Slack
# auth_token:
# secure: kBl9BlxvRMr9liHmnBs14A==
# channel: development
# template: "{message}, {commitId}, ..."