Skip to content

Commit 3ad9df9

Browse files
committed
add Appveyor configuration
1 parent 15ee5b1 commit 3ad9df9

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

Diff for: Taskfile.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ tasks:
2626
desc: Run integration tests only
2727
cmds:
2828
- go test -run Integration {{ default "-v" .GOFLAGS }} -coverprofile=coverage_integ.txt {{ default .DEFAULT_TARGETS .TARGETS }} {{.TEST_LDFLAGS}}
29-
- pytest test/
29+
- pytest test
3030

3131
test-legacy:
3232
desc: Run tests for the `legacy` package

Diff for: appveyor.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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+
# add protoc, gopath and override default Python 2.7
14+
PATH: $(PROTOC_PATH)\bin;$(GOPATH)\bin;C:\Python37;C:\Python37\Scripts;$(PATH)
15+
16+
stack: go 1.12
17+
18+
install:
19+
# install the task executor
20+
- curl -o task.zip -LO https://github.com/go-task/task/releases/download/v2.6.0/task_windows_amd64.zip
21+
- 7z e task.zip -o%GOPATH%\bin
22+
# golang dependencies needed at test time
23+
- go get github.com/golangci/govet
24+
- go get golang.org/x/lint/golint
25+
# Python dependencies needed at test time
26+
- python -V
27+
- pip install -r test\requirements.txt
28+
# protobuf tooling needed at test time
29+
- go get github.com/golang/protobuf/protoc-gen-go
30+
- curl -o protoc.zip -LO https://github.com/protocolbuffers/protobuf/releases/download/v3.8.0/protoc-3.8.0-win64.zip
31+
- 7z e protoc.zip -o%PROTOC_PATH%
32+
33+
test_script:
34+
- task.exe test-integration
35+
36+
# uncomment to debug builds
37+
on_finish:
38+
- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))

0 commit comments

Comments
 (0)