forked from fastavro/fastavro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run-tests.cmd
28 lines (21 loc) · 710 Bytes
/
run-tests.cmd
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
@echo off
setlocal
for /F "tokens=* USEBACKQ" %%F in (`python --version 2^>^&1`) do set PYTHON_VERSION=%%F
echo [%date%:%time%] %USERNAME% :: %PYTHON_VERSION%
del /S *.pyc
del /S *.pyd
if "%SKIP_BLACK%" == "1" (
echo "skipping black"
) else (
echo "running black"
black --target-version py38 --diff fastavro/ tests/ setup.py
black --target-version py38 --check fastavro/ tests/ setup.py
)
echo "running flake8"
flake8 --max-line-length=90 --extend-ignore=E203,E501 fastavro tests
flake8 --config=.flake8.cython fastavro
check-manifest
python setup.py build_ext --inplace
set PYTHONPATH=%cd%
python -m pytest --cov=fastavro -v --cov-report=term-missing --cov-report=html:build/htmlcov tests
endlocal