forked from zussel/matador
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
76 lines (64 loc) · 2.34 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
version: "{branch}-{build}"
services:
- mssql2014
- mysql
image: Visual Studio 2015
configuration:
- Debug
- Release
environment:
matrix:
# - VS_VERSION: Visual Studio 14 2015
# MYSQL_DIR: C:\Program Files\MySql\MySQL Server 5.7
- VS_VERSION: Visual Studio 14 2015 Win64
MYSQL_DIR: C:\Program Files\MySql\MySQL Server 5.7
branches:
only:
- master
- develop
- /^v\d+\.\d+\.\d+$/
install:
- git clone https://github.com/snikulov/sqlite.cmake.build.git C:\projects\sqlite\src
- appveyor-retry choco install doxygen.portable
before_build:
- cd C:\projects\sqlite\src
- mkdir build
- cd build
- set SQLITE_ROOT=C:\projects\sqlite\sqlite
- set PATH=%PATH%;%SQLITE_ROOT%\bin;%MYSQL_DIR%\bin;%MYSQL_DIR%\lib
- set MYSQL_PWD=Password12!
- set USER=root
- mysql -e "create database matador_test;" --user=root
- sqlcmd -S localhost,1433 -U sa -P Password12! -Q "CREATE DATABASE matador_test"
- cmake .. -G"%VS_VERSION%" -DCMAKE_INSTALL_PREFIX=C:\projects\sqlite\sqlite
- cmake --build . --config Release --target install
- cd "%APPVEYOR_BUILD_FOLDER%"
- mkdir build
- cd build
- cmake -G "%VS_VERSION%" -DMATADOR_ODBC=true -DMSSQL_CONNECTION_STRING:STRING="mssql://sa:Password12!@(local)\\SQL2014/matador_test" -DMATADOR_SQLITE3=true -DMATADOR_MYSQL=true -DMYSQL_CONNECTION_STRING:STRING="mysql://root:Password12!@localhost/matador_test" ..
# - cmake -G "%VS_VERSION%" -DMATADOR_ODBC=true -DMSSQL_CONNECTION_STRING:STRING="mssql://sa:Password12!@(local)\\SQL2014/matador_test" -DMATADOR_SQLITE3=true -DMATADOR_MYSQL=false ..
build_script:
- cmake --build . --config %configuration%
test_script:
- cd "%APPVEYOR_BUILD_FOLDER%/build" && if %CONFIGURATION%==Debug (ctest --verbose -E perftest --build-config %CONFIGURATION%) else (ctest --verbose --build-config %CONFIGURATION%)
after_build:
- ps: |
if (($env:APPVEYOR_REPO_TAG -Match "true") -and ($env:configuration -Match "Release")) {
cmake --build . --target web
cpack -G NSIS -C Release
}
artifacts:
- path: Package/matador*.exe
name: installer
- path: Package/calc*.zip
name: zipper
deploy:
provider: GitHub
auth_token:
secure: "kz/25t/c0oeOJ3Ux3r+Sy5F4G7YgPmjSrTpgZ73IQDY4N9mYNqH4kAv4+0I0oeh6"
artifact: installer,zipper
draft: false
prerelease: false
on:
configuration: Release
appveyor_repo_tag: true