-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathappveyor.yml
88 lines (70 loc) · 2.29 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# Notes:
# - Minimal appveyor.yml file is an empty file. All sections are optional.
# - Indent each level of configuration with 2 spaces. Do not use tabs!
# - All section names are case-sensitive.
# - Section names should be unique on each level.
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
version: 1.0.{build} # You can use {branch} to, for example
# you can use {branch} name in version format too
# version: 1.0.{build}-{branch}
# branches to build
branches:
# whitelist
only:
# windows ci is so slow, so test it less frequently with another branch
- ci_win
# - master
# - production
# blacklist
# except:
# - gh-pages
# Do not build on tags (GitHub only)
skip_tags: true
# Skipping commits with particular message or from user
# skip_commits:
# message: /Created.*\.(png|jpg|jpeg|bmp|gif)/ # Regex for matching commit message
# author: John # Commit author's username, name, email or regexp maching one of these.
#---------------------------------#
# environment configuration #
#---------------------------------#
# Operating system (build VM template)
os: Windows Server 2012
# scripts that are called at very beginning, before repo cloning
init:
- git config --global core.autocrlf input
# clone directory
clone_folder: c:\gopath\src\github.com\oliveagle\go-collectors
# set clone depth
clone_depth: 5 # clone entire repository history if not defined
# setting up etc\hosts file
# hosts:
# queue-server: 127.0.0.1
# db.server.com: 127.0.0.2
environment:
GOPATH: c:\gopath
# scripts that run after cloning repository
install:
# install and use golang 1.4
# - set Path=c:\tools\go\bin;%Path%
# - echo %PATH%
# - choco version
# - cinst golang -Version 1.4
# - set GOROOT=c:\tools\go
# - echo %APPVEYOR_BUILD_FOLDER%
- go version
- go env
# - mkdir c:\gopath
#- mkdir c:\gopath\src\github.com\oliveagle\go-collectors
- go get -u github.com/tools/godep
- git clone https://github.com/bosun-monitor/bosun.git c:\gopath\src\bosun.org
build_script:
- SET PATH=%GOPATH%\bin;%PATH%
- cd %APPVEYOR_BUILD_FOLDER%\collectors
- godep go test .
# to disable automatic tests
test: off
# to disable deployment
deploy: off