1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-24 10:37:45 +00:00
sapphire/.appveyor.yml

42 lines
1 KiB
YAML
Raw Normal View History

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
2017-09-12 13:56:31 +02:00
- mkdir mysqlcpp
2017-09-12 16:38:54 +02:00
- git submodule update --init
- cd ..
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
- cd ..
2017-09-12 16:38:54 +02:00
- xcopy c:\projects\sapphire\src\libraries\external\MySQL c:\MySQL /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