forked from tcbrindle/NanoRange
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
46 lines (37 loc) · 1.35 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
# Ninja download and caching taken from Range-V3's appveyor.yml
# https://github.com/ericniebler/range-v3/blob/master/appveyor.yml
# (c) Range-V3 contributors
image:
- Visual Studio 2017
- Visual Studio 2019
# Do not build branches of the form "pr/*". By prefixing pull requests coming
# from branches inside the repository with pr/, this avoids building both the
# branch push _and_ the pull request.
# Based on https://github.com/boostorg/hana/blob/master/.travis.yml
branches:
except:
- /pr\/.+/
environment:
matrix:
- platform: x86
generator: Visual Studio 15 2017
- platform: x64
generator: Visual Studio 15 2017 Win64
cache:
- C:\ninja-1.8.2
install:
- ps: |
if (![IO.File]::Exists("C:\ninja-1.8.2\ninja.exe")) {
Start-FileDownload 'https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-win.zip'
7z x -y ninja-win.zip -oC:\ninja-1.8.2
}
$env:PATH="C:\ninja-1.8.2;$env:PATH"
- for /f "tokens=1* delims=" %%i in ('"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -latest -property installationPath') do call "%%i\VC\Auxiliary\Build\vcvarsall.bat" %PLATFORM:x86=x64_x86%
- ninja --version
build_script:
- mkdir cmake-build
- cd cmake-build
- cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Debug
- cmake --build . --target test_nanorange
test_script:
- ctest -j2