forked from elastic/apm-agent-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
57 lines (50 loc) · 2.09 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
environment:
matrix:
- PYTHON: "C:\\Python34"
WEBFRAMEWORK: "django-1.8"
ASYNCIO: "false"
- PYTHON: "C:\\Python34"
WEBFRAMEWORK: "django-1.9"
ASYNCIO: "false"
- PYTHON: "C:\\Python35"
WEBFRAMEWORK: "django-1.10"
ASYNCIO: "true"
- PYTHON: "C:\\Python34-x64"
DISTUTILS_USE_SDK: "1"
WEBFRAMEWORK: "flask-0.12"
ASYNCIO: "false"
- PYTHON: "C:\\Python34-x64"
DISTUTILS_USE_SDK: "1"
WEBFRAMEWORK: "flask-1.0"
ASYNCIO: "false"
- PYTHON: "C:\\Python35-x64"
WEBFRAMEWORK: "django-2.0"
ASYNCIO: "true"
- PYTHON: "C:\\Python36-x64"
WEBFRAMEWORK: "django-2.0"
ASYNCIO: "true"
cache:
- "%APPDATA%\\pip"
install:
# needed to compile pymongo
- if "%platform%" == "x86" call "%VS120COMNTOOLS%\..\..\VC\vcvarsall.bat"
- if "%platform%" == "x64" "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64
- if "%platform%" == "x64" call "%VS120COMNTOOLS%\..\..\VC\vcvarsall.bat" x86_amd64
# We need wheel installed to build wheels
- ".\\tests\\appveyor\\build.cmd %PYTHON%\\python.exe -m pip install -U wheel pip setuptools"
- ".\\tests\\appveyor\\build.cmd %PYTHON%\\python.exe -m pip install -r tests\\requirements\\requirements-%WEBFRAMEWORK%.txt"
- ".\\tests\\appveyor\\build.cmd %PYTHON%\\python.exe -m pip install psutil"
build: off
test_script:
- bash .\\tests\\scripts\\download_json_schema.sh
- if "%ASYNCIO%" == "true" call appveyor-retry .\\tests\\appveyor\\build.cmd %PYTHON%\\python.exe -m pytest -m "not integrationtest"
- if "%ASYNCIO%" == "false" call appveyor-retry .\\tests\\appveyor\\build.cmd %PYTHON%\\python.exe -m pytest --ignore=tests/asyncio -m "not integrationtest"
after_test:
- ".\\tests\\appveyor\\build.cmd %PYTHON%\\python.exe setup.py bdist_wheel"
artifacts:
# bdist_wheel puts your built wheel in the dist directory
- path: dist\*
#on_success:
# You can use this step to upload your artifacts to a public website.
# See Appveyor's documentation for more details. Or you can simply
# access your wheels from the Appveyor "artifacts" tab for your build.