appveyor.yml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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 ========================================================================
  30. rem Set up the environment variables we need
  31. rem ========================================================================
  32. set DB_HOST=127.0.0.1
  33. set DB_ROOT=root
  34. set DB_ROOTPW=Password12!
  35. set DB_USER=ragnarok
  36. set DB_USERPW=ragnarok
  37. set DB_NAME=ragnarok
  38. set MYSQL="C:\Program Files\MySql\MySQL Server 5.7\bin\mysql.exe"
  39. cd C:\projects\rathena
  40. rem ========================================================================
  41. rem MySQL database setup
  42. rem ========================================================================
  43. call tools\ci\sql.bat
  44. rem ========================================================================
  45. rem Activate all custom and test scripts
  46. rem ========================================================================
  47. start /d tools\ci npc.bat
  48. rem ========================================================================
  49. rem Start the map server
  50. rem ========================================================================
  51. login-server.exe --run-once
  52. char-server.exe --run-once
  53. map-server.exe --run-once