
We disabled rolling builds now(appveyor server side setting) so it does not look like our commits where failing the build tests anymore.
123 lines
3.9 KiB
YAML
123 lines
3.9 KiB
YAML
image: Visual Studio 2015
|
|
# This is the default location, but we put it here for safety reasons, since we use it in our test script
|
|
clone_folder: c:\projects\rathena
|
|
# We do not need the git history for our integration tests
|
|
clone_depth: 50
|
|
version: '{branch}-{build}'
|
|
pull_requests:
|
|
do_not_increment_build_number: true
|
|
environment:
|
|
matrix:
|
|
- VisualStudioVersion: 10.0
|
|
Solution: rAthena-10.sln
|
|
- VisualStudioVersion: 11.0
|
|
Solution: rAthena-12.sln
|
|
- VisualStudioVersion: 12.0
|
|
Solution: rAthena-13.sln
|
|
- VisualStudioVersion: 14.0
|
|
Solution: rAthena-14.sln
|
|
- VisualStudioVersion: 10.0
|
|
Solution: rAthena-10.sln
|
|
Defines: PRERE
|
|
- VisualStudioVersion: 11.0
|
|
Solution: rAthena-12.sln
|
|
Defines: PRERE
|
|
- VisualStudioVersion: 12.0
|
|
Solution: rAthena-13.sln
|
|
Defines: PRERE
|
|
- VisualStudioVersion: 14.0
|
|
Solution: rAthena-14.sln
|
|
Defines: PRERE
|
|
platform:
|
|
- Win32
|
|
configuration:
|
|
- Debug
|
|
# Disable Release for now, since do not want to have any optimization and have access to debug infos on crash
|
|
# - Release
|
|
matrix:
|
|
fast_finish: true
|
|
build_script:
|
|
- cmd: msbuild %Solution% /p:DefineConstants=%Defines%
|
|
services: mysql
|
|
test_script:
|
|
- cmd: >-
|
|
rem Set up the environment variables we need
|
|
|
|
set DB_HOST=127.0.0.1
|
|
|
|
set DB_ROOT=root
|
|
|
|
set DB_ROOTPW=Password12!
|
|
|
|
set DB_USER=ragnarok
|
|
|
|
set DB_USERPW=ragnarok
|
|
|
|
set DB_NAME=ragnarok
|
|
|
|
set MYSQL="C:\Program Files\MySql\MySQL Server 5.7\bin\mysql.exe"
|
|
|
|
rem Setting creation
|
|
|
|
cd C:\projects\rathena
|
|
|
|
echo map_server_ip: %DB_HOST%>> conf\import\inter_conf.txt
|
|
|
|
echo map_server_id: %DB_USER%>> conf\import\inter_conf.txt
|
|
|
|
echo map_server_pw: %DB_PASS%>> conf\import\inter_conf.txt
|
|
|
|
echo map_server_db: %DB_NAME%>> conf\import\inter_conf.txt
|
|
|
|
echo log_db_ip: %DB_HOST%>> conf\import\inter_conf.txt
|
|
|
|
echo log_db_id: %DB_USER%>> conf\import\inter_conf.txt
|
|
|
|
echo log_db_pw: %DB_USERPW%>> conf\import\inter_conf.txt
|
|
|
|
echo log_db_db: %DB_NAME%>> conf\import\inter_conf.txt
|
|
|
|
rem MySQL database setup
|
|
|
|
%MYSQL% -u %DB_ROOT% -p%DB_ROOTPW% -e "CREATE DATABASE %DB_NAME%;"
|
|
|
|
%MYSQL% -u %DB_ROOT% -p%DB_ROOTPW% %DB_NAME% -e "source sql-files\main.sql"
|
|
|
|
%MYSQL% -u %DB_ROOT% -p%DB_ROOTPW% %DB_NAME% -e "source sql-files\logs.sql"
|
|
|
|
%MYSQL% -u %DB_ROOT% -p%DB_ROOTPW% %DB_NAME% -e "source sql-files\item_cash_db.sql"
|
|
|
|
%MYSQL% -u %DB_ROOT% -p%DB_ROOTPW% %DB_NAME% -e "source sql-files\item_cash_db2.sql"
|
|
|
|
%MYSQL% -u %DB_ROOT% -p%DB_ROOTPW% %DB_NAME% -e "source sql-files\item_db.sql"
|
|
|
|
%MYSQL% -u %DB_ROOT% -p%DB_ROOTPW% %DB_NAME% -e "source sql-files\item_db2.sql"
|
|
|
|
%MYSQL% -u %DB_ROOT% -p%DB_ROOTPW% %DB_NAME% -e "source sql-files\item_db_re.sql"
|
|
|
|
%MYSQL% -u %DB_ROOT% -p%DB_ROOTPW% %DB_NAME% -e "source sql-files\item_db2_re.sql"
|
|
|
|
%MYSQL% -u %DB_ROOT% -p%DB_ROOTPW% %DB_NAME% -e "source sql-files\mob_db.sql"
|
|
|
|
%MYSQL% -u %DB_ROOT% -p%DB_ROOTPW% %DB_NAME% -e "source sql-files\mob_db2.sql"
|
|
|
|
%MYSQL% -u %DB_ROOT% -p%DB_ROOTPW% %DB_NAME% -e "source sql-files\mob_db_re.sql"
|
|
|
|
%MYSQL% -u %DB_ROOT% -p%DB_ROOTPW% %DB_NAME% -e "source sql-files\mob_db2_re.sql"
|
|
|
|
%MYSQL% -u %DB_ROOT% -p%DB_ROOTPW% %DB_NAME% -e "source sql-files\mob_skill_db.sql"
|
|
|
|
%MYSQL% -u %DB_ROOT% -p%DB_ROOTPW% %DB_NAME% -e "source sql-files\mob_skill_db2.sql"
|
|
|
|
%MYSQL% -u %DB_ROOT% -p%DB_ROOTPW% %DB_NAME% -e "source sql-files\mob_skill_db_re.sql"
|
|
|
|
%MYSQL% -u %DB_ROOT% -p%DB_ROOTPW% %DB_NAME% -e "source sql-files\mob_skill_db2_re.sql"
|
|
|
|
%MYSQL% -u %DB_ROOT% -p%DB_ROOTPW% %DB_NAME% -e "source sql-files\roulette_default_data.sql"
|
|
|
|
%MYSQL% -u %DB_ROOT% -p%DB_ROOTPW% -e "GRANT ALL ON *.* TO '%DB_USER%'@'%DB_HOST%' IDENTIFIED BY '%DB_USERPW%';"
|
|
|
|
rem Start the map server
|
|
|
|
map-server.exe --run-once
|