forked from DataDog/integrations-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
57 lines (57 loc) · 2.64 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
version: '{branch}.{build}'
shallow_clone: true
environment:
TRAVIS_BUILD_DIR: c:\projects\integrations-core
INTEGRATIONS_DIR: c:\projects\integrations-core\embedded
PIP_CACHE: c:\projects\integrations-core\.cache\pip
VOLATILE_DIR: c:\projects
NOSE_FILTER: not unix and not fixme and not winfixme
PYWIN_PATH: C:\projects\integrations-core\.cache\pywin32-py2.7.exe
SKIP_LINT: true
DD_AGENT_BRANCH: master
SDK_TESTING: true
matrix:
- PYTHON: C:\\Python27
PYTHON_VERSION: 2.7.11
PYTHON_ARCH: 32
PYWIN32_URL: https://downloads.sourceforge.net/project/pywin32/pywin32/Build%20219/pywin32-219.win32-py2.7.exe
PYWIN32_INSTALL_DIR: pywin32-219-py2.7-win32.egg
- PYTHON: C:\\Python27-x64
PYTHON_VERSION: 2.7.9
PYTHON_ARCH: 64
PYWIN32_URL: http://sourceforge.net/projects/pywin32/files/pywin32/Build%20219/pywin32-219.win-amd64-py2.7.exe/download
PYWIN32_INSTALL_DIR: pywin32-219-py2.7-win-amd64.egg
cache:
- C:\projects\integrations-core\.cache
- C:\projects\integrations-core\vendor\cache
- C:\projects\integrations-core\embedded
services:
- iis
# - mssql2008r2sp2 # FIXME: re-enable when we can launch multiple mssql instances at once
- mssql2012sp1
# - mssql2014 # FIXME: re-enable when we can launch multiple mssql instances at once
install:
# Use the 64-bit ruby so that all the Powershell classes are accessible when running shell commands from ruby
- set PATH=C:\Ruby22-x64\bin;%PATH%
- gem install bundler --quiet --no-ri --no-rdoc
- bundle install
- bundle package
- git clone -b %DD_AGENT_BRANCH% https://github.com/DataDog/dd-agent.git c:\projects\dd-agent
- if not exist %PIP_CACHE% mkdir %PIP_CACHE%
- ps: If (-Not (Test-Path $env:PYWIN_PATH)) {(new-object net.webclient).DownloadFile("$env:PYWIN32_URL", "$env:PYWIN_PATH")}
- "%PYTHON%/Scripts/easy_install.exe %PYWIN_PATH%"
- ps: mkdir -p $(python -m site --user-site)
- ps: echo "C:\projects\dd-agent" | out-file "$(python -m site --user-site)/datadog-agent.pth" -encoding ASCII
- ps: '& "$env:PYTHON/Scripts/pip.exe" install -r c:\projects\dd-agent\requirements.txt'
# Remove the adodbapi module shipped with pywin32: it conflicts with the pip-installed adodbapi
- ps: rm $env:PYTHON/lib/site-packages/$env:PYWIN32_INSTALL_DIR/adodbapi/__init__.py
- ps: rm $env:PYTHON/lib/site-packages/$env:PYWIN32_INSTALL_DIR/adodbapi/__init__.pyc
build: off
test_script:
- set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
- bundle exec rake ci:run[default]
- bundle exec rake ci:run[sqlserver]
- bundle exec rake ci:run[iis]
- bundle exec rake ci:run[windows_service]
- bundle exec rake ci:run[wmi_check]
- bundle exec rake ci:run[win32_event_log]