1+ build : off
2+ deploy : off
3+
4+ clone_folder : C:\arduino-cli
5+ shallow_clone : true
6+
7+ skip_tags : true
8+ skip_branch_with_pr : true
9+
10+ environment :
11+ GOPATH : c:\gopath
12+ PROTOC_PATH : c:\protoc
13+ PROTOC_BINARY : protoc.exe
14+ # add protoc, gopath and override default Python 2.7
15+ PATH : $(PROTOC_PATH);$(PROTOC_PATH)\bin;$(GOPATH)\bin;C:\Python37;C:\Python37\Scripts;$(PATH)
16+
17+ stack : go 1.12
18+
19+ install :
20+ # install the task executor
21+ - curl -o task.zip -LO https://github.com/go-task/task/releases/download/v2.6.0/task_windows_amd64.zip
22+ - 7z e task.zip -o%GOPATH%\bin
23+ # golang dependencies needed at test time
24+ - go get github.com/golangci/govet
25+ - go get golang.org/x/lint/golint
26+ # Python dependencies needed at test time
27+ - python -V
28+ - pip install -r test\requirements.txt
29+ # protobuf tooling needed at test time. We use a very old version of the compiler
30+ # because of this: https://github.com/protocolbuffers/protobuf/issues/3957
31+ - go get github.com/golang/protobuf/protoc-gen-go
32+ - curl -o protoc.zip -LO https://github.com/protocolbuffers/protobuf/releases/download/v3.4.0/protoc-3.4.0-win32.zip
33+ - 7z e protoc.zip -o%PROTOC_PATH%
34+
35+ test_script :
36+ # Check if the Go code is properly formatted and run the linter
37+ - task.exe check
38+ # Ensure protobufs compile
39+ - task.exe protoc
40+ # re-enable after fixing go tests
41+ # - task.exe test-integration
42+ # build the binary
43+ - task.exe build
44+ # run e2e tests
45+ - pytest test
46+
47+ # uncomment to debug builds
48+ # on_finish:
49+ # - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
0 commit comments