-
Notifications
You must be signed in to change notification settings - Fork 41
/
appveyor.yml
59 lines (50 loc) · 1.79 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
# Version format
version: "{build}"
# Operating system (build VM template)
os: Windows Server 2012 R2
# Environment variables
environment:
GOROOT: c:\go
GOPATH: c:\gopath
PROJ: github.com\elastic\filebeat
# Custom clone folder (variables are not expanded here).
clone_folder: c:\gopath\src\github.com\elastic\filebeat
# Scripts that run after cloning repository
install:
- set PATH=%GOROOT%\bin;%PATH%
- set PATH=%GOPATH%\bin;%PATH%
- set GOPATH=%GOPATH%\src\%PROJ%\Godeps\_workspace;%GOPATH%
- go version
- go env
- python --version
- appveyor DownloadFile https://raw.githubusercontent.com/pypa/pip/master/contrib/get-pip.py
- python get-pip.py
- set PATH=C:\Python27\Scripts;%PATH%
- pip install jinja2 nose nose-timer
# To run your custom scripts instead of automatic MSBuild
build_script:
# Compile
- appveyor AddCompilationMessage "Starting Compile"
- go build
- appveyor AddCompilationMessage "Compile Success" -FileName "filebeat.exe"
# To run your custom scripts instead of automatic tests
test_script:
# Unit tests
- ps: Add-AppveyorTest "Unit Tests" -Outcome Running
- go test ./...
- ps: Update-AppveyorTest "Unit Tests" -Outcome Passed
# System tests
- ps: Add-AppveyorTest "System tests" -Outcome Running
- go test -race -c -cover -covermode=atomic -coverpkg ./...
- ps: cd tests/system
- nosetests --with-timer
- ps: Update-AppveyorTest "System tests" -Outcome Passed
# Executes for both successful and failed builds
on_finish:
- cd c:\gopath\src\github.com\elastic\filebeat
- 7z a -r system-tests-output.zip build\system-tests\run
- ps: Push-AppveyorArtifact system-tests-output.zip
# To disable deployment
deploy: off
# Notifications should only be setup using the AppVeyor UI so that
# forks can be created without inheriting the settings.