2017-08-12 01:59:41 +01:00
|
|
|
os:
|
|
|
|
- Visual Studio 2015
|
|
|
|
|
|
|
|
configuration:
|
|
|
|
- Debug
|
|
|
|
|
|
|
|
platform:
|
|
|
|
- Win32
|
|
|
|
|
|
|
|
environment:
|
|
|
|
MSVC_DEFAULT_OPTIONS: ON
|
2017-09-12 14:13:53 +02:00
|
|
|
BOOST_ROOT_DIR: "C:\\Libraries\\boost_1_60_0"
|
|
|
|
BOOST_LIB_DIR: "C:\\Libraries\\boost_1_60_0\\lib32-msvc-14.0"
|
2017-08-12 01:59:41 +01:00
|
|
|
MYSQL_PWD: "Password12!"
|
|
|
|
|
|
|
|
services:
|
|
|
|
- mysql
|
|
|
|
|
|
|
|
before_build:
|
|
|
|
- set PATH="C:\\Program Files\\MySQL\\MySQL Server 5.7\\bin";%PATH%
|
2017-09-12 16:38:54 +02:00
|
|
|
- cd c:\projects\sapphire
|
|
|
|
- git submodule update --init
|
|
|
|
- cd ..
|
2017-09-12 16:40:07 +02:00
|
|
|
- mkdir mysqlcpp
|
2017-09-12 13:54:35 +02:00
|
|
|
- cd mysqlcpp
|
|
|
|
- cmake --version
|
|
|
|
- git clone https://github.com/mysql/mysql-connector-cpp
|
2017-09-12 15:17:04 +02:00
|
|
|
- cd mysql-connector-cpp
|
2017-09-12 17:02:13 +02:00
|
|
|
- git checkout 1.1
|
2017-09-12 15:17:04 +02:00
|
|
|
- cd ..
|
2017-09-12 17:07:08 +02:00
|
|
|
- mkdir c:\MySQL
|
|
|
|
- mkdir c:\MySQL\mysql
|
|
|
|
- xcopy c:\projects\sapphire\src\libraries\external\MySQL c:\MySQL\mysql\ /s /e /h
|
|
|
|
- xcopy c:\projects\sapphire\src\libraries\external\MySQL c:\MySQL\mysql\includes\ /s /e /h
|
2017-09-12 15:20:30 +02:00
|
|
|
- cmake mysql-connector-cpp/. -DBOOST_ROOT=C:\\Libraries\\boost_1_60_0
|
|
|
|
- cmake --build . --target INSTALL --config RelWithDebInfo
|
2017-09-12 14:10:20 +02:00
|
|
|
- cd c:\projects\sapphire
|
2017-08-12 01:59:41 +01:00
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2017-09-12 14:31:06 +02:00
|
|
|
- cmake .. -G "Visual Studio 14 2015" -DMYSQLCONNECTORCPP_ROOT_DIR=C:\\projects\\mysqlcpp\\mysql-connector-cpp
|
2017-08-12 01:59:41 +01:00
|
|
|
- cmake --build . --target ALL_BUILD --config Debug
|
|
|
|
|
|
|
|
build_script:
|
|
|
|
- cd ..
|
2017-09-12 13:54:35 +02:00
|
|
|
- sh sql_import.sh
|