azure-pipelines_windows.yml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. jobs:
  2. - job: mxe_32_build
  3. pool:
  4. name: 'Hosted Ubuntu 1604'
  5. steps:
  6. - script: |
  7. uname -a
  8. export BITS=32
  9. export CROSS="i686-w64-mingw32.shared"
  10. ./tools/ci/scripts/azure/mxetest.sh
  11. cp ./dlls/* "$(Build.ArtifactStagingDirectory)"
  12. cp ./src/*.exe "$(Build.ArtifactStagingDirectory)"
  13. sudo ./tools/ci/scripts/azure/mxeremovefiles.sh
  14. cp -rf . "$(Build.ArtifactStagingDirectory)"
  15. ls "$(Build.ArtifactStagingDirectory)"
  16. echo done
  17. env:
  18. GITLABTOKEN: $(gitlabtoken)
  19. - task: PublishBuildArtifacts@1
  20. inputs:
  21. artifactName: manaplus32
  22. - job: mxe_32_test
  23. dependsOn: mxe_32_build
  24. pool:
  25. name: 'Hosted VS2017'
  26. steps:
  27. - checkout: none
  28. - task: DownloadBuildArtifacts@0
  29. inputs:
  30. buildType: 'current'
  31. project: 'ManaPlus'
  32. artifactName: 'manaplus32'
  33. - script: dir "$(Build.ArtifactStagingDirectory)\manaplus32"
  34. - script: xcopy /s "$(Build.ArtifactStagingDirectory)\manaplus32\*" .
  35. - script: tools\ci\scripts\addextrafiles.cmd
  36. - script: dir
  37. - script: |
  38. set SDL_VIDEODRIVER=dummy
  39. echo run
  40. manaplustests.exe
  41. - job: mxe_64_build
  42. pool:
  43. name: 'Hosted Ubuntu 1604'
  44. steps:
  45. - script: |
  46. uname -a
  47. export BITS=64
  48. export CROSS="x86_64-w64-mingw32.shared"
  49. ./tools/ci/scripts/azure/mxetest.sh
  50. cp ./dlls/* "$(Build.ArtifactStagingDirectory)"
  51. cp ./src/*.exe "$(Build.ArtifactStagingDirectory)"
  52. sudo ./tools/ci/scripts/azure/mxeremovefiles.sh
  53. cp -rf . "$(Build.ArtifactStagingDirectory)"
  54. ls "$(Build.ArtifactStagingDirectory)"
  55. echo done
  56. env:
  57. GITLABTOKEN: $(gitlabtoken)
  58. - task: PublishBuildArtifacts@1
  59. inputs:
  60. artifactName: manaplus64
  61. - job: mxe_64_test
  62. dependsOn: mxe_64_build
  63. pool:
  64. name: 'Hosted VS2017'
  65. steps:
  66. - checkout: none
  67. - task: DownloadBuildArtifacts@0
  68. inputs:
  69. buildType: 'current'
  70. project: 'ManaPlus'
  71. artifactName: 'manaplus64'
  72. - script: dir "$(Build.ArtifactStagingDirectory)\manaplus64"
  73. - script: xcopy /s "$(Build.ArtifactStagingDirectory)\manaplus64\*" .
  74. - script: tools\ci\scripts\addextrafiles.cmd
  75. - script: dir
  76. - script: |
  77. set SDL_VIDEODRIVER=dummy
  78. echo run
  79. manaplustests.exe