forked from thejohnfreeman/autocheck
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
56 lines (51 loc) · 1.65 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
# This configuration was influenced by googletest:
# https://github.com/google/googletest/blob/master/appveyor.yml
environment:
matrix:
- ARCH: x86
GENERATOR: Visual Studio 14 2015
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
- ARCH: x86_64
GENERATOR: Visual Studio 14 2015 Win64
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
- ARCH: x86
GENERATOR: Visual Studio 15 2017
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
- ARCH: x86_64
GENERATOR: Visual Studio 15 2017 Win64
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
configuration:
- Debug
- Release
# Unclear how to do this in PowerShell.
install:
- ps: |
${env:PATH} = "${env:PYTHON};${env:PYTHON}\Scripts;${env:PATH}"
$ErrorActionPreference = "Stop"
pip.exe install --upgrade pip
pip.exe install --upgrade conan --ignore-installed
conan user
conan --version
conan remote add jfreeman https://api.bintray.com/conan/jfreeman/jfreeman
conan remote list
build_script:
- ps: |
$ErrorActionPreference = "Stop"
$env:CMAKE_BUILD_PARALLEL_LEVEL = ""
md build
cd build
conan install `
--setting "arch=${env:ARCH}" `
--setting "build_type=${env:CONFIGURATION}" `
..
cmake `
-G "${env:GENERATOR}" `
"-DCMAKE_CONFIGURATION_TYPES=${env:CONFIGURATION}" `
"-DCMAKE_TOOLCHAIN_FILE=${pwd}/conan_paths.cmake" `
..
cmake --build . --config "${env:CONFIGURATION}"
test_script:
- ps: |
$ErrorActionPreference = "Stop"
$env:CTEST_PARALLEL_LEVEL = ""
ctest --build-config "${env:CONFIGURATION}" --verbose