-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathappveyor.yml
62 lines (53 loc) · 1.99 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
version: '{branch}.{build}'
shallow_clone: false
platform: x64
skip_branch_with_pr: true
branches:
only:
- master
- /^\d+\.\d+\.\d+$/
environment:
GOPATH: C:\gopath
# Give hints to CMake to find Pythons
Python2_ROOT_DIR: C:\Python27-x64
Python3_ROOT_DIR: C:\Python38-x64
PIP2: pip2 -q
PIP3: pip3 -q
MSYS_ROOT: C:\msys64
install:
- set PATH=%APPVEYOR_BUILD_FOLDER%\bin;%GOPATH%\bin;%Python2_ROOT_DIR%;%Python2_ROOT_DIR%\Scripts;%Python3_ROOT_DIR%;%Python3_ROOT_DIR%\Scripts;%MSYS_ROOT%\mingw64\bin;%MSYS_ROOT%\usr\bin\;%PATH%
- git clone --depth 1 https://github.com/datadog/integrations-core
- "%PIP2% install pyyaml requests prometheus_client rtloader"
- "%PIP3% install pyyaml requests prometheus_client rtloader"
cache:
- '%LOCALAPPDATA%\pip\Cache'
build: off
test_script:
- cmake -G "MSYS Makefiles" .
- bash -c "make clang-format"
- bash -c "make && make -C test run"
# we install the base check here because tests must run in a clean env
- "%PIP2% install -r integrations-core/directory/requirements.in"
- "%PIP2% install integrations-core/datadog_checks_base integrations-core/directory"
- bash -c "./bin/demo 2"
- "%PIP3% install -r integrations-core/directory/requirements.in"
- "%PIP3% install integrations-core/datadog_checks_base integrations-core/directory"
- bash -c "./bin/demo 3"
# archive binaries
- 7z a "datadog-agent-rtloader.zip" "./bin/*.dll" "./rtloader/libdatadog-agent-rtloader.a"
artifacts:
- path: "datadog-agent-rtloader.zip"
deploy:
provider: GitHub
description: "Datadog Agent RtLoader"
force_update: true
auth_token:
secure: 89PR5NjCO2AajmsJBlM/lr5EpYMefvZaVve8Tkyxu2X9xqVcxKGcq25C9ywMySDI
artifact: "datadog-agent-rtloader.zip"
tag: $(APPVEYOR_REPO_TAG_NAME)
on:
# deploy on tag push only
appveyor_repo_tag: true
# uncomment to debug builds
# on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))