-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathappveyor.yml
54 lines (45 loc) · 1.7 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
version: "{build}"
init:
- git config --global core.autocrlf input
clone_folder: c:\projects\CMakeLibraryAndApp
shallow_clone: false
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
COMPILER: "Visual Studio 14"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
COMPILER: "Visual Studio 14 Win64"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
COMPILER: "Visual Studio 14"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
COMPILER: "Visual Studio 14 Win64"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
COMPILER: "Visual Studio 15"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
COMPILER: "Visual Studio 15 Win64"
matrix:
# This is so that if any of the above builds fails, then the whole build fails early.
fast_finish: true
configuration:
- Release
platform:
# Set to 'Any CPU', as it is the COMPILER string listed above that tells
# cmake to pick a generator for either a 64 or 32 bit build.
- Any CPU
before_build:
- cmd: |
echo --------------------------------------------------------------------------------
echo "COMPILER=%COMPILER%, PYTHON=%MB_PYTHON%, CONFIGURATION=%CONFIGURATION%"
cmake -version
pwd
git submodule update -q --init --recursive
echo "PATH=%PATH%"
echo --------------------------------------------------------------------------------
build_script:
- cmd: |
echo --------------------------------------------------------------------------------
mkdir build
cd build
cmake -G "%COMPILER%" --config %CONFIGURATION% ..
cmake --build . --config %CONFIGURATION%
echo --------------------------------------------------------------------------------