|
1 |
| -version: '{branch}.{build}' |
2 |
| -shallow_clone: true |
3 |
| -environment: |
4 |
| - TRAVIS_BUILD_DIR: c:\projects\dd-agent |
5 |
| - INTEGRATIONS_DIR: c:\projects\dd-agent\embedded |
6 |
| - CHECKSD_OVERRIDE: c:\projects\dd-agent\tests\checks\fixtures\checks |
7 |
| - PIP_CACHE: c:\projects\dd-agent\.cache\pip |
8 |
| - VOLATILE_DIR: c:\projects |
9 |
| - NOSE_FILTER: not unix and not fixme |
10 |
| - PYWIN_PATH: C:\projects\dd-agent\.cache\pywin32-py2.7.exe |
11 |
| - SKIP_LINT: true |
12 |
| - matrix: |
13 |
| - - PYTHON: C:\\Python27 |
14 |
| - PYTHON_VERSION: 2.7.9 |
15 |
| - PYTHON_ARCH: 32 |
16 |
| - PYWIN32_URL: https://downloads.sourceforge.net/project/pywin32/pywin32/Build%20219/pywin32-219.win32-py2.7.exe |
17 |
| - PYWIN32_INSTALL_DIR: pywin32-219-py2.7-win32.egg |
18 |
| - - PYTHON: C:\\Python27-x64 |
19 |
| - PYTHON_VERSION: 2.7.9 |
20 |
| - PYTHON_ARCH: 64 |
21 |
| - PYWIN32_URL: http://sourceforge.net/projects/pywin32/files/pywin32/Build%20219/pywin32-219.win-amd64-py2.7.exe/download |
22 |
| - PYWIN32_INSTALL_DIR: pywin32-219-py2.7-win-amd64.egg |
23 |
| -cache: |
24 |
| - - C:\projects\dd-agent\.cache |
25 |
| - - C:\projects\dd-agent\vendor\cache |
26 |
| - - C:\projects\dd-agent\embedded |
27 |
| -services: |
28 |
| - - iis |
29 |
| - # - mssql2008r2sp2 # FIXME: re-enable when we can launch multiple mssql instances at once |
30 |
| - - mssql2012sp1 |
31 |
| - # - mssql2014 # FIXME: re-enable when we can launch multiple mssql instances at once |
32 |
| -install: |
33 |
| - # Use the 64-bit ruby so that all the Powershell classes are accessible when running shell commands from ruby |
34 |
| - - set PATH=C:\Ruby22-x64\bin;%PATH% |
35 |
| - # If bundler is already install '--conservative' will avoid upgrading gems who already meet the version requirement (and avoid conflicts) |
36 |
| - - gem install bundler --conservative --quiet --no-ri --no-rdoc |
37 |
| - - bundle install |
38 |
| - - bundle package |
39 |
| - - if not exist %PIP_CACHE% mkdir %PIP_CACHE% |
40 |
| - - ps: If (-Not (Test-Path $env:PYWIN_PATH)) {(new-object net.webclient).DownloadFile("$env:PYWIN32_URL", "$env:PYWIN_PATH")} |
41 |
| - - "%PYTHON%/Scripts/easy_install.exe %PYWIN_PATH%" |
42 |
| - # Remove the adodbapi module shipped with pywin32: it conflicts with the pip-installed adodbapi |
43 |
| - - ps: rm $env:PYTHON/lib/site-packages/$env:PYWIN32_INSTALL_DIR/adodbapi/__init__.py |
44 |
| - - ps: rm $env:PYTHON/lib/site-packages/$env:PYWIN32_INSTALL_DIR/adodbapi/__init__.pyc |
45 |
| -build: off |
46 |
| -test_script: |
47 |
| - - set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH% |
48 |
| - - bundle exec rake ci:run[default] |
49 |
| - - bundle exec rake ci:run[core_integration] |
50 |
| - - bundle exec rake ci:run[windows] |
| 1 | +version: '{branch}.{build}' |
| 2 | +shallow_clone: true |
| 3 | +environment: |
| 4 | + TRAVIS_BUILD_DIR: c:\projects\dd-agent |
| 5 | + INTEGRATIONS_DIR: c:\projects\dd-agent\embedded |
| 6 | + CHECKSD_OVERRIDE: c:\projects\dd-agent\tests\checks\fixtures\checks |
| 7 | + PIP_CACHE: c:\projects\dd-agent\.cache\pip |
| 8 | + VOLATILE_DIR: c:\projects |
| 9 | + NOSE_FILTER: not unix and not fixme |
| 10 | + PYWIN_PATH: C:\projects\dd-agent\.cache\pywin32-py2.7.exe |
| 11 | + SKIP_LINT: true |
| 12 | + INTEGRATIONS_CORE_BRANCH: master |
| 13 | + matrix: |
| 14 | + - PYTHON: C:\\Python27 |
| 15 | + PYTHON_VERSION: 2.7.9 |
| 16 | + PYTHON_ARCH: 32 |
| 17 | + PYWIN32_URL: https://downloads.sourceforge.net/project/pywin32/pywin32/Build%20219/pywin32-219.win32-py2.7.exe |
| 18 | + PYWIN32_INSTALL_DIR: pywin32-219-py2.7-win32.egg |
| 19 | + - PYTHON: C:\\Python27-x64 |
| 20 | + PYTHON_VERSION: 2.7.9 |
| 21 | + PYTHON_ARCH: 64 |
| 22 | + PYWIN32_URL: http://sourceforge.net/projects/pywin32/files/pywin32/Build%20219/pywin32-219.win-amd64-py2.7.exe/download |
| 23 | + PYWIN32_INSTALL_DIR: pywin32-219-py2.7-win-amd64.egg |
| 24 | +cache: |
| 25 | + - C:\projects\dd-agent\.cache |
| 26 | + - C:\projects\dd-agent\vendor\cache |
| 27 | + - C:\projects\dd-agent\embedded |
| 28 | +services: |
| 29 | + - iis |
| 30 | + # - mssql2008r2sp2 # FIXME: re-enable when we can launch multiple mssql instances at once |
| 31 | + - mssql2012sp1 |
| 32 | + # - mssql2014 # FIXME: re-enable when we can launch multiple mssql instances at once |
| 33 | +install: |
| 34 | + # Use the 64-bit ruby so that all the Powershell classes are accessible when running shell commands from ruby |
| 35 | + - set PATH=C:\Ruby22-x64\bin;%PATH% |
| 36 | + # If bundler is already install '--conservative' will avoid upgrading gems who already meet the version requirement (and avoid conflicts) |
| 37 | + - gem install bundler --conservative --quiet --no-ri --no-rdoc |
| 38 | + - bundle install |
| 39 | + - bundle package |
| 40 | + - git clone -b %INTEGRATIONS_CORE_BRANCH% https://github.com/DataDog/integrations-core.git c:\projects\integrations-core |
| 41 | + - if not exist %PIP_CACHE% mkdir %PIP_CACHE% |
| 42 | + - ps: If (-Not (Test-Path $env:PYWIN_PATH)) {(new-object net.webclient).DownloadFile("$env:PYWIN32_URL", "$env:PYWIN_PATH")} |
| 43 | + - "%PYTHON%/Scripts/easy_install.exe %PYWIN_PATH%" |
| 44 | + # Remove the adodbapi module shipped with pywin32: it conflicts with the pip-installed adodbapi |
| 45 | + - ps: rm $env:PYTHON/lib/site-packages/$env:PYWIN32_INSTALL_DIR/adodbapi/__init__.py |
| 46 | + - ps: rm $env:PYTHON/lib/site-packages/$env:PYWIN32_INSTALL_DIR/adodbapi/__init__.pyc |
| 47 | + - ps: (& "$env:PYTHON/Scripts/pip.exe" install wheel) |
| 48 | + - cd c:\projects\integrations-core\datadog_checks_base |
| 49 | + - ps: (& "$env:PYTHON/python.exe" setup.py bdist_wheel) |
| 50 | + - ps: (& "$env:PYTHON/Scripts/pip.exe" install .) |
| 51 | + - cd %TRAVIS_BUILD_DIR% |
| 52 | +build: off |
| 53 | +test_script: |
| 54 | + - set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH% |
| 55 | + - bundle exec rake ci:run[default] |
| 56 | + - bundle exec rake ci:run[core_integration] |
| 57 | + - bundle exec rake ci:run[windows] |
0 commit comments