forked from TileDB-Inc/TileDB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
120 lines (88 loc) · 2.72 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
version: '{build}'
image:
- Visual Studio 2017
environment:
TILEDB_S3: false
build_script:
- ps: >-
mkdir build
cd build
$env:Path += ";C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin"
if ($env:TILEDB_S3 -eq "true") {
..\bootstrap.ps1 -EnableS3 -EnableVerbose -EnableStaticTileDB
..\scripts\install-minio.ps1
} else {
..\bootstrap.ps1 -EnableVerbose -EnableStaticTileDB
}
if ($LastExitCode -ne 0) {
Write-Host "Bootstrap failed."
$host.SetShouldExit($LastExitCode)
}
cmake --build . --config Release -- /verbosity:minimal
if ($LastExitCode -ne 0) {
Write-Host "Build failed."
$host.SetShouldExit($LastExitCode)
}
test_script:
- ps: >-
cd $env:APPVEYOR_BUILD_FOLDER\build\tiledb
cmake --build . --target check --config Release -- /verbosity:minimal
if ($LastExitCode -ne 0) {
Write-Host "Tests failed."
$host.SetShouldExit($LastExitCode)
}
cmake --build . --target examples --config Release -- /verbosity:minimal
if ($LastExitCode -ne 0) {
Write-Host "Examples failed to build."
$host.SetShouldExit($LastExitCode)
}
cmake --build . --target install --config Release
if ($LastExitCode -ne 0) {
Write-Host "Installation failed."
$host.SetShouldExit($LastExitCode)
}
$env:Path += ";$env:APPVEYOR_BUILD_FOLDER\dist\bin;..\externals\install\bin"
try {
.\examples\c_api\Release\quickstart_dense_c.exe
} catch {
Write-Host "C API example failed."
$host.SetShouldExit(1)
}
if ($LastExitCode -ne 0) {
Write-Host "C API example failed."
$host.SetShouldExit($LastExitCode)
} else {
# Remove the output directory created by the example
rm -Recurse -Force quickstart_dense
}
try {
.\examples\cpp_api\Release\quickstart_dense_cpp.exe
} catch {
Write-Host "C++ API example failed."
$host.SetShouldExit(1)
}
if ($LastExitCode -ne 0) {
Write-Host "C++ API example failed."
$host.SetShouldExit($LastExitCode)
}
cd $env:APPVEYOR_BUILD_FOLDER\examples\cmake_project
mkdir build
cd build
cmake -A X64 -DCMAKE_PREFIX_PATH=$env:APPVEYOR_BUILD_FOLDER\dist ..
cmake --build . --config Release -- /verbosity:minimal
.\Release\ExampleExe.exe
.\Release\ExampleExe_static.exe
cd $env:APPVEYOR_BUILD_FOLDER\build
mkdir dist
mv ..\dist dist\tiledb-windows-x64
cd dist
7z a tiledb-windows-x64.zip tiledb-windows-x64
for:
-
branches:
only:
- master
- dev
artifacts:
- path: build\dist\tiledb-windows-x64.zip
name: tiledb-windows-x64.zip