-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
50 lines (46 loc) · 2.09 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
version: "#{build}"
skip_tags: true
image:
- Visual Studio 2017
environment:
matrix:
- JOB: compile
ARCH: amd64
BOOST_VERSION: 1_64_0
- JOB: compile
ARCH: amd64
BOOST_VERSION: 1_65_1
- JOB: compile
ARCH: amd64
BOOST_VERSION: 1_66_0
- JOB: compile
ARCH: amd64
BOOST_VERSION: 1_67_0
- JOB: compile
ARCH: x86
BOOST_VERSION: 1_67_0
- JOB: compile
ARCH: amd64
CXX: clang-cl
BOOST_VERSION: 1_67_0
- JOB: lint
ARCH: amd64
BOOST_VERSION: 1_67_0
init:
- if exist "C:\Program Files (x86)\Microsoft Visual Studio\2017" ( appveyor SetVariable -Name VS_VER -Value 2017 ) else ( appveyor SetVariable -Name VS_VER -Value 2015 )
- if "%ARCH%"=="amd64" ( appveyor SetVariable -Name BOOST_LIBDIR -Value lib64-msvc ) else ( appveyor SetVariable -Name BOOST_LIBDIR -Value lib32-msvc )
- if "%VS_VER%"=="2017" ( appveyor SetVariable -Name BOOST_LIB_VERSION -Value 14.1 ) else ( appveyor SetVariable -Name BOOST_LIB_VERSION -Value 14.0 )
- if "%VS_VER%"=="2017" ( appveyor SetVariable -Name BOOST_COMPILER_VERSION -Value vc141 ) else ( appveyor SetVariable -Name BOOST_COMPILER_VERSION -Value vc140 )
install:
- git submodule update --init --recursive
before_build:
- if "%VS_VER%"=="2015" call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %ARCH%
- if "%VS_VER%"=="2017" call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat" -arch=%ARCH%
build_script:
- mkdir build && cd build
- cmake -G "NMake Makefiles" -DBOOST_ROOT=C:/Libraries/boost_%BOOST_VERSION% -DBOOST_LIBRARYDIR=C:/Libraries/boost_%BOOST_VERSION%/%BOOST_LIBDIR%-%BOOST_LIB_VERSION% -DBoost_COMPILER=-%BOOST_COMPILER_VERSION% ..
- if "%JOB%"=="compile" nmake
test_script:
- if "%JOB%"=="compile" nmake check-tests
- bash -c "if [[ $JOB = 'lint' ]]; then ! nmake //nologo check-lint | grep -Ev '(Scanning dependencies of target|Built target)'; fi"
- bash -c "if [[ $JOB = 'lint' ]]; then ! nmake //nologo check-format | grep -Ev '(Scanning dependencies of target|Built target)'; fi"