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 13:56:31 +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:12:03 +02:00
|
|
|
- git checkout 1.1
|
2017-09-12 14:13:53 +02:00
|
|
|
- cmake mysql-connector-cpp/. -DWITH_BOOST=C:\\Libraries\\boost_1_60_0
|
2017-09-12 15:12:03 +02:00
|
|
|
- cmake --build . --target ALL_BUILD --config RelWithDebInfo
|
2017-09-12 14:10:20 +02:00
|
|
|
- cd c:\projects\sapphire
|
2017-08-12 01:59:41 +01:00
|
|
|
- git submodule update --init
|
|
|
|
- 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
|