summaryrefslogtreecommitdiff
path: root/azure-pipelines_windows.yml
blob: 31279c309dc96a2c1bfadb304975341cf8c9ee8c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
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)"
      sudo ./tools/ci/scripts/azure/mxeremovefiles.sh
      cp -rf . "$(Build.ArtifactStagingDirectory)"
      ls "$(Build.ArtifactStagingDirectory)"
      echo done
  - task: PublishBuildArtifacts@1
    inputs:
      artifactName: manaplus32
    env:
      GITLABTOKEN: $(gitlabtoken)

- job: mxe_32_test
  dependsOn: mxe_32_build
  pool:
    name: 'Hosted VS2017'
  steps:
  - checkout: none
  - task: DownloadBuildArtifacts@0
    inputs:
      buildType: 'current'
      project: 'ManaPlus'
      artifactName: 'manaplus32'
  - script: dir "$(Build.ArtifactStagingDirectory)\manaplus32"
  - script: xcopy /s "$(Build.ArtifactStagingDirectory)\manaplus32\*" .
  - 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)"
      sudo ./tools/ci/scripts/azure/mxeremovefiles.sh
      cp -rf . "$(Build.ArtifactStagingDirectory)"
      ls "$(Build.ArtifactStagingDirectory)"
      echo done
    env:
      GITLABTOKEN: $(gitlabtoken)
  - task: PublishBuildArtifacts@1
    inputs:
      artifactName: manaplus64

- job: mxe_64_test
  dependsOn: mxe_64_build
  pool:
    name: 'Hosted VS2017'
  steps:
  - checkout: none
  - task: DownloadBuildArtifacts@0
    inputs:
      buildType: 'current'
      project: 'ManaPlus'
      artifactName: 'manaplus64'
  - script: dir "$(Build.ArtifactStagingDirectory)\manaplus64"
  - script: xcopy /s "$(Build.ArtifactStagingDirectory)\manaplus64\*" .
  - script: tools\ci\scripts\addextrafiles.cmd
  - script: dir
  - script: |
      set SDL_VIDEODRIVER=dummy
      echo run
      manaplustests.exe