summaryrefslogtreecommitdiff
path: root/azure-pipelines_windows.yml
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-09-11 02:39:29 +0000
committerAndrei Karas <akaras@inbox.ru>2018-09-20 00:29:05 +0300
commitda3eb22cb8831553ab3ca7d8bb3249bf67b2ec47 (patch)
tree9ac65c59f2cd6e82a82db194b75429d6b00ea310 /azure-pipelines_windows.yml
parent85ec852201fa91664a2345cb76aa2a4fadc2ba3a (diff)
downloadmv-da3eb22cb8831553ab3ca7d8bb3249bf67b2ec47.tar.gz
mv-da3eb22cb8831553ab3ca7d8bb3249bf67b2ec47.tar.bz2
mv-da3eb22cb8831553ab3ca7d8bb3249bf67b2ec47.tar.xz
mv-da3eb22cb8831553ab3ca7d8bb3249bf67b2ec47.zip
Add azure pipeline for build and run windows tests.
Diffstat (limited to 'azure-pipelines_windows.yml')
-rw-r--r--azure-pipelines_windows.yml74
1 files changed, 74 insertions, 0 deletions
diff --git a/azure-pipelines_windows.yml b/azure-pipelines_windows.yml
new file mode 100644
index 000000000..26f4a83aa
--- /dev/null
+++ b/azure-pipelines_windows.yml
@@ -0,0 +1,74 @@
+jobs:
+- job: mxe_32_build
+ pool:
+ name: 'Hosted Ubuntu 1604'
+ steps:
+ - script: |
+ uname -a
+ export BITS=32
+ export CROSS="i686-w64-mingw32.shared"
+ ./tools/ci/scripts/azure/mxetest.sh
+ cp ./dlls/* "$(Build.ArtifactStagingDirectory)"
+ cp ./src/*.exe "$(Build.ArtifactStagingDirectory)"
+ ls "$(Build.ArtifactStagingDirectory)"
+ echo done
+ - task: PublishBuildArtifacts@1
+ inputs:
+ artifactName: manaplus32
+
+- job: mxe_32_test
+ dependsOn: mxe_32_build
+ pool:
+ name: 'Hosted VS2017'
+ steps:
+ - task: DownloadBuildArtifacts@0
+ inputs:
+ buildType: 'current'
+ project: 'ManaPlus'
+ artifactName: 'manaplus32'
+ - script: dir "$(Build.ArtifactStagingDirectory)\manaplus32"
+ - script: copy "$(Build.ArtifactStagingDirectory)\manaplus32\*" .
+ - script: type data\test\serverlistplus.xml
+ - script: tools\ci\scripts\addextrafiles.cmd
+ - script: dir
+ - script: |
+ set SDL_VIDEODRIVER=dummy
+ echo run
+ manaplustests.exe
+
+- job: mxe_64_build
+ pool:
+ name: 'Hosted Ubuntu 1604'
+ steps:
+ - script: |
+ uname -a
+ export BITS=64
+ export CROSS="x86_64-w64-mingw32.shared"
+ ./tools/ci/scripts/azure/mxetest.sh
+ cp ./dlls/* "$(Build.ArtifactStagingDirectory)"
+ cp ./src/*.exe "$(Build.ArtifactStagingDirectory)"
+ ls "$(Build.ArtifactStagingDirectory)"
+ echo done
+ - task: PublishBuildArtifacts@1
+ inputs:
+ artifactName: manaplus64
+
+- job: mxe_64_test
+ dependsOn: mxe_64_build
+ pool:
+ name: 'Hosted VS2017'
+ steps:
+ - task: DownloadBuildArtifacts@0
+ inputs:
+ buildType: 'current'
+ project: 'ManaPlus'
+ artifactName: 'manaplus64'
+ - script: dir "$(Build.ArtifactStagingDirectory)\manaplus64"
+ - script: copy "$(Build.ArtifactStagingDirectory)\manaplus64\*" .
+ - script: type data\test\serverlistplus.xml
+ - script: tools\ci\scripts\addextrafiles.cmd
+ - script: dir
+ - script: |
+ set SDL_VIDEODRIVER=dummy
+ echo run
+ manaplustests.exe