forked from erthink/libfpta
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappveyor.yml
More file actions
73 lines (62 loc) · 1.93 KB
/
appveyor.yml
File metadata and controls
73 lines (62 loc) · 1.93 KB
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
68
69
70
71
72
73
version: 0.1.0.{build}
environment:
GTEST_SHUFFLE: 1
GTEST_RUNTIME_LIMIT: 142
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
CMAKE_GENERATOR: Visual Studio 15 2017
TOOLSET: v141
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
CMAKE_GENERATOR: Visual Studio 14 2015
TOOLSET: v140
branches:
except:
- coverity_scan
configuration:
- Debug
- Release
platform:
- x86
- x64
artifacts:
- path: '_build/Testing/Temporary/*'
name: test_results
install:
- git submodule sync
- git submodule update --init --recursive
- git fetch --tags --prune
- git submodule foreach --recursive git fetch --tags --prune
- cmake --version
before_build:
- ps: |
Write-Output "*******************************************************************************"
Write-Output "Configuration: $env:CONFIGURATION"
Write-Output "Platform: $env:PLATFORM"
$generator = $env:CMAKE_GENERATOR
if ($env:PLATFORM -eq "x64") {
$generator = "$generator Win64"
}
Write-Output "Toolchain: $generator ($env:TOOLSET)"
Write-Output "*******************************************************************************"
build_script:
- ps: |
md _build -Force | Out-Null
cd _build
& cmake -G "$generator" -DCMAKE_CONFIGURATION_TYPES="Debug;Release" ..
if ($LastExitCode -ne 0) {
throw "Exec: $ErrorMessage"
}
Write-Output "*******************************************************************************"
& cmake --build . --config $env:CONFIGURATION
if ($LastExitCode -ne 0) {
throw "Exec: $ErrorMessage"
}
Write-Output "*******************************************************************************"
test_script:
- ps: |
& ctest -C $env:CONFIGURATION --output-on-failure
if ($LastExitCode -ne 0) {
throw "Exec: $ErrorMessage"
}
& externals/libfptu/test/$env:CONFIGURATION/fptu_c_mode.exe
& test/$env:CONFIGURATION/fpta_c_mode.exe