forked from dictation-toolbox/natlink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
43 lines (35 loc) · 1.33 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
version: 4.2.{build}
image:
- Visual Studio 2019
environment:
matrix:
- PYTHON: "C:\\Python38"
PYTHON_VERSION: "3.8"
PYTHON_LIBRARIES: "optimized;C:/Python38/libs/python38.lib;debug;C:/Python38/libs/python38_d.lib"
PYTHON_INCLUDE_DIRS: "C:/Python38/include"
PYTHON_ARCH: "32"
- PYTHON: "C:\\Python37"
PYTHON_VERSION: "3.7"
PYTHON_LIBRARIES: "optimized;C:/Python37/libs/python37.lib;debug;C:/Python37/libs/python37_d.lib"
PYTHON_INCLUDE_DIRS: "C:/Python37/include"
PYTHON_ARCH: "32"
- PYTHON: "C:\\Python36"
PYTHON_VERSION: "3.6"
PYTHON_LIBRARIES: "optimized;C:/Python36/libs/python36.lib;debug;C:/Python36/libs/python36_d.lib"
PYTHON_INCLUDE_DIRS: "C:/Python36/include"
PYTHON_ARCH: "32"
build_script:
- call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars32.bat"
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- md build
- cd build
- cmake -DPYTHON_VERSION=%PYTHON_VERSION% -DPYTHON_INCLUDE_DIRS=%PYTHON_INCLUDE_DIRS% -DPYTHON_LIBRARIES=%PYTHON_LIBRARIES% -G "Visual Studio 16 2019" -A Win32 ..
- cmake --build . --target NatlinkModule --config RelWithDebInfo
after_build:
- pip install ./natlink
before_test:
- pip install pytest mypy
test_script:
- cd %APPVEYOR_BUILD_FOLDER%
- pytest PyTest
- mypy