-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathappveyor.yml
76 lines (66 loc) · 2.36 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
environment:
global:
TEST_UID: root
TEST_PASSWORD: root
TEST_SERVER: localhost
TEST_SCHEMA: test
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
DB: 10.5.9
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
DB: 10.4.18
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
DB: 10.5.9
matrix:
allow_failures:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
# scripts that are called at very beginning, before repo cloning
init:
- git config --global core.autocrlf input
- wmic cpu get NumberOfCores
- wmic ComputerSystem get TotalPhysicalMemory
clone_folder: c:\maodbc
platform: x64
configuration: Release
build_script:
# build libmariadb separately first because otherwise the Wix installer build might look for files that aren't available yet
- cd libmariadb
- cmake --build . --config RelWithDebInfo --parallel 2
# build conncpp
- cd ..
- cmake --build . --config RelWithDebInfo --parallel 2
# scripts to run before build
before_build:
- cd c:\maodbc
- git submodule init
- git submodule update
- rm -rf win64
- mkdir win64
- cd win64
- cmake .. -DCONC_WITH_MSI=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DWITH_SIGNCODE=0 -DWITH_SSL=SCHANNEL
install:
# download and install MariaDB Server
- cmd: appveyor-download.bat
- cmd: msiexec /i server.msi INSTALLDIR=c:\mariadb-server SERVICENAME=mariadb PASSWORD=%TEST_PASSWORD% /qn
# create test database
- cmd: c:\mariadb-server\bin\mysql.exe -e "CREATE DATABASE testcpp" --user=%TEST_UID% -p%TEST_PASSWORD%
after_build:
# install built driver
- ps: $msifile = Get-ChildItem $env:APPVEYOR_BUILD_FOLDER\win64\wininstall\mariadb-connector-*.msi | Select-Object -First 1
- ps: Push-AppveyorArtifact $msifile.FullName -FileName $msifile.Name
- ps: Write $msifile
- ps: msiexec /i $msifile INSTALLDIR=c:\mariadb-conncpp /qn
- timeout /T 1
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
- cd test
- ctest -V
on_finish:
# - dir
# - dir RelWithDebInfo
# - dir wininstall
# - dir libmariadb\RelWithDebInfo
# - dir release
# - dir libmariadb
# - dir libmariadb\release
# - dir wininstall
# - type wininstall\mariadb_odbc.xml