-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from andrewkroh/feature/appveyor
Add appveyor config file.
- Loading branch information
Showing
1 changed file
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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\winlogbeat | ||
|
||
# Custom clone folder (variables are not expanded here). | ||
clone_folder: c:\gopath\src\github.com\elastic\winlogbeat | ||
|
||
# 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 "winlogbeat.exe" | ||
|
||
# To run your custom scripts instead of automatic tests | ||
test_script: | ||
# Unit tests | ||
- ps: Add-AppveyorTest "Unit Tests" -Outcome Running | ||
- go test -race ./... | ||
- 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\winlogbeat | ||
- 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. |