forked from patkivikram/aiokafka-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
38 lines (31 loc) · 1.44 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
environment:
PYTHONASYNCIODEBUG: "1"
KAFKA_VERSION: "2.8.1"
SCALA_VERSION: "2.13"
matrix:
- PYTHON: "C:\\Python39"
- PYTHON: "C:\\Python39-x64"
- PYTHON: "C:\\Python38"
- PYTHON: "C:\\Python38-x64"
- PYTHON: "C:\\Python37"
- PYTHON: "C:\\Python37-x64"
- PYTHON: "C:\\Python36"
- PYTHON: "C:\\Python36-x64"
image: Visual Studio 2022
install:
- "%PYTHON%\\python.exe -m pip install -r requirements-win-test.txt"
- "%PYTHON%\\python.exe setup.py develop"
build: off
test_script:
- "%PYTHON%\\python.exe -c \"import sys; print(sys.version)\""
- "%PYTHON%\\python.exe -m pytest -sv --cov=aiokafka --cov-report=xml --junit-xml=results.xml --docker-image=aiolibs/kafka:%SCALA_VERSION%_%KAFKA_VERSION% tests"
- "set AIOKAFKA_NO_EXTENSIONS=x"
- "%PYTHON%\\python.exe -m pytest -sv --cov=aiokafka --cov-report=xml:coverage-no-extension.xml --junit-xml=results-no-extension.xml --docker-image=aiolibs/kafka:%SCALA_VERSION%_%KAFKA_VERSION% tests"
on_finish:
- ps: >-
$wc = New-Object 'System.Net.WebClient'
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path results.xml))
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path results-no-extension.xml))
- "%PYTHON%\\python.exe -m pip install codecov"
- "%PYTHON%\\python.exe -m codecov -f \"coverage.xml\""
- "%PYTHON%\\python.exe -m codecov -f \"coverage-no-extension.xml\""