-
-
Notifications
You must be signed in to change notification settings - Fork 398
/
Copy pathappveyor.yml
49 lines (42 loc) · 1.58 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
build: off
deploy: off
clone_folder: C:\arduino-cli
shallow_clone: true
skip_tags: true
skip_branch_with_pr: true
environment:
GOPATH: c:\gopath
PROTOC_PATH: c:\protoc
PROTOC_BINARY: protoc.exe
# add protoc, gopath and override default Python 2.7
PATH: $(PROTOC_PATH);$(PROTOC_PATH)\bin;$(GOPATH)\bin;C:\Python37;C:\Python37\Scripts;$(PATH)
stack: go 1.12
install:
# install the task executor
- curl -o task.zip -LO https://github.com/go-task/task/releases/download/v2.6.0/task_windows_amd64.zip
- 7z x task.zip -o%GOPATH%\bin
# golang dependencies needed at test time
- go get github.com/golangci/govet
- go get golang.org/x/lint/golint
# Python dependencies needed at test time
- python -V
- pip install -r test\requirements.txt
# protobuf tooling needed at test time. We use a very old version of the compiler
# because of this: https://github.com/protocolbuffers/protobuf/issues/3957
- go get github.com/golang/protobuf/protoc-gen-go
- curl -o protoc.zip -LO https://github.com/protocolbuffers/protobuf/releases/download/v3.9.1/protoc-3.9.1-win32.zip
- 7z x protoc.zip -o%PROTOC_PATH%
test_script:
# Check if the Go code is properly formatted and run the linter
- task.exe check
# Ensure protobufs compile
- task.exe protoc
# re-enable after fixing go tests
# - task.exe test-integration
# build the binary
- task.exe build
# run e2e tests
- pytest test
# uncomment to debug builds
# on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))