fix appveyor by making it the same as core
version: '{branch}.{build}'
clone_depth: 3
+build: off
+test: off
+skip_branch_with_pr: true
+cache:
+ - '%LOCALAPPDATA%\pip\Cache'
+services:
+ - iis
+ # We can't start more than one MSSQL instance to avoid conflicts on TCP port 1433. The only workaround to test a check
+ # against multiple versions is letting the test code to start/stop the corresponding services so that they run one at
+ # a time. See https://www.appveyor.com/docs/services-databases/ for details.
+ - mssql2008r2sp2
+
+branches:
+ only:
+ - master
+
environment:
- PIP_CACHE: c:\projects\integrations-extras\.cache\pip
- VOLATILE_DIR: c:\projects
- PYWIN_PATH: C:\projects\integrations-extras\.cache\pywin32-py2.7.exe
- SKIP_LINT: true
- PYTHON: C:\Python27-x64
- PYTHON_VERSION: 2.7.13
- PYTHON_ARCH: 64
- PYWIN32_URL: https://downloads.sourceforge.net/project/pywin32/pywin32/Build%20219/pywin32-219.win-amd64-py2.7.exe
- PYWIN32_INSTALL_DIR: pywin32-219-py2.7-win-amd64.egg
+ PYTHON2: C:\Python27-x64
+ PYTHON3: C:\Python36-x64
+
init:
- - set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
-cache:
- - C:\projects\integrations-extras\.cache
- - C:\projects\integrations-extras\vendor\cache
+ # Add Python 3 to PATH
+ - set PATH=%PYTHON3%;%PYTHON3%\Scripts;%PATH%
+ - python -c "import sys; print(sys.version)"
+
+ # Add Python 2 to PATH before Python 3
+ - set PATH=%PYTHON2%;%PYTHON2%\Scripts;%PATH%
+ - python -c "import sys; print(sys.version)"
+
+ - if defined APPVEYOR_PULL_REQUEST_NUMBER ( set "CHANGED_ONLY_FLAG= --changed" ) else ( set "CHANGED_ONLY_FLAG= " )
+
install:
- - 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: (& "$env:PYTHON/python.exe" -m pip install --upgrade pip virtualenv)
- - ps: '& "$env:PYTHON/Scripts/pip.exe" install datadog-checks-dev[cli]'
- - ddev config set extras .
- # 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
+ - python -m pip install --upgrade --disable-pip-version-check pip virtualenv codecov
+ - pip uninstall -y docker-py
+ - pip install datadog_checks_dev[cli]
+ - ddev config set core .
+
test_script:
- ddev -e test
