-
Notifications
You must be signed in to change notification settings - Fork 812
/
appveyor.yml
57 lines (57 loc) · 2.68 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\dd-agent
INTEGRATIONS_DIR: c:\projects\dd-agent\embedded
CHECKSD_OVERRIDE: c:\projects\dd-agent\tests\checks\fixtures\checks
PIP_CACHE: c:\projects\dd-agent\.cache\pip
VOLATILE_DIR: c:\projects
NOSE_FILTER: not unix and not fixme
PYWIN_PATH: C:\projects\dd-agent\.cache\pywin32-py2.7.exe
SKIP_LINT: true
INTEGRATIONS_CORE_BRANCH: agent-v5
matrix:
- PYTHON: C:\\Python27
PYTHON_VERSION: 2.7.9
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\dd-agent\.cache
- C:\projects\dd-agent\vendor\cache
- C:\projects\dd-agent\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%
# If bundler is already install '--conservative' will avoid upgrading gems who already meet the version requirement (and avoid conflicts)
- gem install bundler --conservative --quiet --no-ri --no-rdoc
- bundle install
- bundle package
- git clone -b %INTEGRATIONS_CORE_BRANCH% https://github.com/DataDog/integrations-core.git c:\projects\integrations-core
- 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%"
# 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
- ps: (& "$env:PYTHON/Scripts/pip.exe" install wheel)
- cd c:\projects\integrations-core\datadog_checks_base
- ps: (& "$env:PYTHON/python.exe" setup.py bdist_wheel)
- ps: (& "$env:PYTHON/Scripts/pip.exe" install .)
- cd %TRAVIS_BUILD_DIR%
build: off
test_script:
- set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
- bundle exec rake ci:run[default]
- bundle exec rake ci:run[core_integration]
- bundle exec rake ci:run[windows]