Skip to content

Commit

Permalink
Merge pull request #7 from andrewkroh/feature/appveyor
Browse files Browse the repository at this point in the history
Add appveyor config file.
  • Loading branch information
tsg committed Nov 20, 2015
2 parents b56e6d4 + 5c1f904 commit 71dcc7e
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions appveyor.yml
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.

0 comments on commit 71dcc7e

Please sign in to comment.