-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
84 lines (69 loc) · 3.51 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
clone_folder: c:\projects\DNetPRO
configuration: Debug
image:
- Visual Studio 2017
- Visual Studio 2019
environment:
WORKSPACE: C:\projects
# MSVC v2017
matrix:
- platform: Win32
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
PYTHON: "C:\\Python36-x64"
COMPILER: vs
MSVC_SETUP_PATH: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat
MSVC_SETUP_ARG: x86
- platform: Win64
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
PYTHON: "C:\\Python36-x64"
COMPILER: vs
MSVC_SETUP_PATH: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat
MSVC_SETUP_ARG: x64
# MSVC v2019
- platform: Win32
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
PYTHON: "C:\\Python36-x64"
COMPILER: vs
MSVC_SETUP_PATH: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat
MSVC_SETUP_ARG: x86
- platform: Win64
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
PYTHON: "C:\\Python36-x64"
COMPILER: vs
MSVC_SETUP_PATH: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat
MSVC_SETUP_ARG: x64
matrix:
exclude:
- image: Visual Studio 2017
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
- image: Visual Studio 2019
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
install:
- if [%COMPILER%]==[vs] cinst ninja
- if [%COMPILER%]==[vs] SET "PATH=C:\Program Files\CMake\bin;%PATH%"
- if [%COMPILER%]==[vs] SET "PATH=C:\Program Files\LLVM\bin;%PATH%"
- if [%COMPILER%]==[vs] call "%MSVC_SETUP_PATH%" %MSVC_SETUP_ARG%
############################################################################
# Install a recent CMake
############################################################################
- set CMAKE_URL="https://cmake.org/files/v3.14/cmake-3.14.1-win64-x64.zip"
- appveyor DownloadFile %CMAKE_URL% -FileName cmake.zip
- 7z x cmake.zip -oC:\projects\deps > nul
- move C:\projects\deps\cmake-* C:\projects\deps\cmake # Move to a version-agnostic directory
- set PATH=C:\projects\deps\cmake\bin;%PATH%
- cmake --version
- git submodule -q update --init --recursive
before_build:
- cd %WORKSPACE%\DNetPRO
- mkdir build
- cd build
build_script:
- if [%MSVC_SETUP_ARG%]==[x64] if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" cmake .. -G "Visual Studio 15 2017 Win64" "-DCMAKE_BUILD_TYPE:STRING=Release" "-DBUILD_DOCS:BOOL=OFF" -DPYWRAP:BOOL=OFF "-DOMP:BOOL=OFF" "-DFORCE_USE_SUBMODULES:BOOL=ON"
- if [%MSVC_SETUP_ARG%]==[x86] if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" cmake .. -G "Visual Studio 15 2017" "-DCMAKE_BUILD_TYPE:STRING=Release" "-DBUILD_DOCS:BOOL=OFF" -DPYWRAP:BOOL=OFF "-DOMP:BOOL=OFF" "-DFORCE_USE_SUBMODULES:BOOL=ON"
- if [%MSVC_SETUP_ARG%]==[x64] if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2019" cmake .. -G "Visual Studio 16 2019" -T "host=x64" -A "x64" "-DCMAKE_BUILD_TYPE:STRING=Release" "-DBUILD_DOCS:BOOL=OFF" -DPYWRAP:BOOL=OFF "-DOMP:BOOL=OFF" "-DFORCE_USE_SUBMODULES:BOOL=ON"
- if [%MSVC_SETUP_ARG%]==[x86] if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2019" cmake .. -G "Visual Studio 16 2019" "-DCMAKE_BUILD_TYPE:STRING=Release" "-DBUILD_DOCS:BOOL=OFF" -DPYWRAP:BOOL=OFF "-DOMP:BOOL=OFF" "-DFORCE_USE_SUBMODULES:BOOL=ON"
- cmake --build . --config Release
#- cd ..
#- "%PYTHON%\\python.exe -m pip install -U pip"
#- "%PYTHON%\\python.exe -m pip install -r requirements.txt"
#- "%PYTHON%\\python.exe setup.py install"