forked from google/fleetspeak
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
45 lines (39 loc) · 1.74 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
# Adhere to the directory structure imposed on us by the go toolchain.
clone_folder: C:\gopath\src\github.com\google\fleetspeak
environment:
# Set GOPATH so the go toolchain can find the repo.
#
# Default GOROOT is C:\go, which is where appveyor installs the latest
# version of go (so no need to define the env variable here).
GOPATH: C:\gopath
# Make sure the gcc compiler is in the PATH (for cgo compilation).
PATH: '%PATH%;%GOPATH%\bin;C:\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1\mingw64\bin'
install:
- go version
- ps: Write-Output $env:PATH
- go get -u golang.org/x/lint/golint
- C:\Python36-x64\python.exe -m venv C:\fsenv
- C:\fsenv\Scripts\activate.bat
- pip install --user --upgrade pip
- pip install -e .\fleetspeak_python
before_build:
- ps: $lint_errors = (golint ./... | Select-String -NotMatch 'should have comment or be unexported')
- ps: $lint_errors
- ps: if ($lint_errors.Length -gt 9) { throw 'New lint errors introduced!' }
# Build executables needed by tests.
build_script:
- >-
go build -o fleetspeak/src/client/socketservice/testclient/testclient.exe
github.com/google/fleetspeak/fleetspeak/src/client/socketservice/testclient
- >-
go build -o fleetspeak/src/client/daemonservice/testclient/testclient.exe
github.com/google/fleetspeak/fleetspeak/src/client/daemonservice/testclient
# Build all Fleetspeak packages, and run all tests.
test_script:
- C:\fsenv\Scripts\activate.bat
- python --version
- pip show fleetspeak
- go test -race github.com/google/fleetspeak/fleetspeak/src/common/... --timeout 180s
- go test -race github.com/google/fleetspeak/fleetspeak/src/client/... --timeout 180s
# TODO(ogaro): Move src/windows to src/client.
- go test -race github.com/google/fleetspeak/fleetspeak/src/windows/... --timeout 180s