appveyor.yml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. image: Visual Studio 2015
  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. - Defines: "\"BUILDBOT\""
  12. - Defines: "\"BUILDBOT;PRERE\""
  13. platform:
  14. - Win32
  15. - x64
  16. configuration:
  17. - Debug
  18. # Disable Release for now, since do not want to have any optimization and have access to debug infos on crash
  19. # - Release
  20. matrix:
  21. fast_finish: true
  22. build_script:
  23. - cmd: msbuild rAthena.sln /p:DefineConstants=%Defines%
  24. services: mysql
  25. test_script:
  26. - cmd: >-
  27. rem ========================================================================
  28. rem Set up the environment variables we need
  29. rem ========================================================================
  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 ========================================================================
  39. rem MySQL database setup
  40. rem ========================================================================
  41. call tools\ci\sql.bat
  42. rem ========================================================================
  43. rem Activate all custom and test scripts
  44. rem ========================================================================
  45. start /d tools\ci npc.bat
  46. rem ========================================================================
  47. rem Start the map server
  48. rem ========================================================================
  49. login-server.exe --run-once
  50. char-server.exe --run-once
  51. map-server.exe --run-once