|
@@ -26,8 +26,12 @@ build_script:
|
|
services: mysql
|
|
services: mysql
|
|
test_script:
|
|
test_script:
|
|
- cmd: >-
|
|
- cmd: >-
|
|
|
|
+ rem ========================================================================
|
|
|
|
+
|
|
rem Set up the environment variables we need
|
|
rem Set up the environment variables we need
|
|
|
|
|
|
|
|
+ rem ========================================================================
|
|
|
|
+
|
|
set DB_HOST=127.0.0.1
|
|
set DB_HOST=127.0.0.1
|
|
|
|
|
|
set DB_ROOT=root
|
|
set DB_ROOT=root
|
|
@@ -44,53 +48,28 @@ test_script:
|
|
|
|
|
|
cd C:\projects\rathena
|
|
cd C:\projects\rathena
|
|
|
|
|
|
- rem TODO should be replace with tools\ci\sql.bat as soon as possible
|
|
|
|
- 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"
|
|
|
|
|
|
+ rem ========================================================================
|
|
|
|
|
|
- %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"
|
|
|
|
|
|
+ rem MySQL database setup
|
|
|
|
|
|
- %MYSQL% -u %DB_ROOT% -p%DB_ROOTPW% %DB_NAME% -e "source sql-files\mob_skill_db2_re.sql"
|
|
|
|
|
|
+ rem ========================================================================
|
|
|
|
|
|
- %MYSQL% -u %DB_ROOT% -p%DB_ROOTPW% %DB_NAME% -e "source sql-files\roulette_default_data.sql"
|
|
|
|
|
|
+ call tools\ci\sql.bat
|
|
|
|
|
|
- %MYSQL% -u %DB_ROOT% -p%DB_ROOTPW% -e "GRANT SELECT,INSERT,UPDATE,DELETE ON %DB_NAME%.* TO '%DB_USER%'@'%DB_HOST%' IDENTIFIED BY '%DB_USERPW%';"
|
|
|
|
|
|
+ rem ========================================================================
|
|
|
|
|
|
rem Activate all custom and test scripts
|
|
rem Activate all custom and test scripts
|
|
|
|
|
|
|
|
+ rem ========================================================================
|
|
|
|
+
|
|
start /d tools\ci npc.bat
|
|
start /d tools\ci npc.bat
|
|
|
|
|
|
|
|
+ rem ========================================================================
|
|
|
|
+
|
|
rem Start the map server
|
|
rem Start the map server
|
|
|
|
|
|
|
|
+ rem ========================================================================
|
|
|
|
+
|
|
login-server.exe --run-once
|
|
login-server.exe --run-once
|
|
|
|
|
|
char-server.exe --run-once
|
|
char-server.exe --run-once
|