appveyor.yml 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. image: Visual Studio 2013
  2. # This is the default location, but we put it here for safety reasons, since we use it in our test script
  3. clone_folder: c:\projects\rathena
  4. # We do not need the git history for our integration tests
  5. clone_depth: 50
  6. version: '{branch}-{build}'
  7. pull_requests:
  8. do_not_increment_build_number: true
  9. environment:
  10. matrix:
  11. - VisualStudioVersion: 14.0
  12. Defines: "\"BUILDBOT\""
  13. - VisualStudioVersion: 14.0
  14. Defines: "\"BUILDBOT;PRERE\""
  15. platform:
  16. - Win32
  17. - x64
  18. configuration:
  19. - Debug
  20. # Disable Release for now, since do not want to have any optimization and have access to debug infos on crash
  21. # - Release
  22. matrix:
  23. fast_finish: true
  24. build_script:
  25. - cmd: msbuild rAthena.sln /p:DefineConstants=%Defines%
  26. services: mysql
  27. test_script:
  28. - cmd: >-
  29. rem Set up the environment variables we need
  30. set DB_HOST=127.0.0.1
  31. set DB_ROOT=root
  32. set DB_ROOTPW=Password12!
  33. set DB_USER=ragnarok
  34. set DB_USERPW=ragnarok
  35. set DB_NAME=ragnarok
  36. set MYSQL="C:\Program Files\MySql\MySQL Server 5.7\bin\mysql.exe"
  37. cd C:\projects\rathena
  38. rem TODO should be replace with tools\ci\sql.bat as soon as possible
  39. rem MySQL database setup
  40. %MYSQL% -u %DB_ROOT% -p%DB_ROOTPW% -e "CREATE DATABASE %DB_NAME%;"
  41. %MYSQL% -u %DB_ROOT% -p%DB_ROOTPW% %DB_NAME% -e "source sql-files\main.sql"
  42. %MYSQL% -u %DB_ROOT% -p%DB_ROOTPW% %DB_NAME% -e "source sql-files\logs.sql"
  43. %MYSQL% -u %DB_ROOT% -p%DB_ROOTPW% %DB_NAME% -e "source sql-files\item_cash_db.sql"
  44. %MYSQL% -u %DB_ROOT% -p%DB_ROOTPW% %DB_NAME% -e "source sql-files\item_cash_db2.sql"
  45. %MYSQL% -u %DB_ROOT% -p%DB_ROOTPW% %DB_NAME% -e "source sql-files\item_db.sql"
  46. %MYSQL% -u %DB_ROOT% -p%DB_ROOTPW% %DB_NAME% -e "source sql-files\item_db2.sql"
  47. %MYSQL% -u %DB_ROOT% -p%DB_ROOTPW% %DB_NAME% -e "source sql-files\item_db_re.sql"
  48. %MYSQL% -u %DB_ROOT% -p%DB_ROOTPW% %DB_NAME% -e "source sql-files\item_db2_re.sql"
  49. %MYSQL% -u %DB_ROOT% -p%DB_ROOTPW% %DB_NAME% -e "source sql-files\mob_db.sql"
  50. %MYSQL% -u %DB_ROOT% -p%DB_ROOTPW% %DB_NAME% -e "source sql-files\mob_db2.sql"
  51. %MYSQL% -u %DB_ROOT% -p%DB_ROOTPW% %DB_NAME% -e "source sql-files\mob_db_re.sql"
  52. %MYSQL% -u %DB_ROOT% -p%DB_ROOTPW% %DB_NAME% -e "source sql-files\mob_db2_re.sql"
  53. %MYSQL% -u %DB_ROOT% -p%DB_ROOTPW% %DB_NAME% -e "source sql-files\mob_skill_db.sql"
  54. %MYSQL% -u %DB_ROOT% -p%DB_ROOTPW% %DB_NAME% -e "source sql-files\mob_skill_db2.sql"
  55. %MYSQL% -u %DB_ROOT% -p%DB_ROOTPW% %DB_NAME% -e "source sql-files\mob_skill_db_re.sql"
  56. %MYSQL% -u %DB_ROOT% -p%DB_ROOTPW% %DB_NAME% -e "source sql-files\mob_skill_db2_re.sql"
  57. %MYSQL% -u %DB_ROOT% -p%DB_ROOTPW% %DB_NAME% -e "source sql-files\roulette_default_data.sql"
  58. %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%';"
  59. rem Activate all custom and test scripts
  60. start /d tools\ci npc.bat
  61. rem Start the map server
  62. login-server.exe --run-once
  63. char-server.exe --run-once
  64. map-server.exe --run-once