-
Notifications
You must be signed in to change notification settings - Fork 67
/
Copy pathappveyor.yml
67 lines (52 loc) · 1.3 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
version: 3.0.{build}
configuration:
- Debug
platform:
- x64
- x86
image:
- Visual Studio 2019
- Visual Studio 2017
- Visual Studio 2015
# Disable build through solution file
build: off
# Build through commands in script below
test_script:
- ps: >-
echo $env:APPVEYOR_BUILD_WORKER_IMAGE
cd samples
if($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2019")
{
if($env:PLATFORM -eq "x64")
{
cmake . -B build -G "Visual Studio 16 2019" -A x64
}
if($env:PLATFORM -eq "x86")
{
cmake . -B build -G "Visual Studio 16 2019" -A Win32
}
}
if($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2017")
{
if($env:PLATFORM -eq "x64")
{
cmake . -B build -G "Visual Studio 15 2017 Win64"
}
if($env:PLATFORM -eq "x86")
{
cmake . -B build -G "Visual Studio 15 2017"
}
}
if($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2015")
{
if($env:PLATFORM -eq "x64")
{
cmake . -B build -G "Visual Studio 14 2015 Win64"
}
if($env:PLATFORM -eq "x86")
{
cmake . -B build -G "Visual Studio 14 2015"
}
}
cmake --build build
bin\Debug\linalg-test.exe