/
azure-pipelines.yml
55 lines (50 loc) · 2.75 KB
/
azure-pipelines.yml
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
pr: # Trigger a build on every PR.
branches:
include:
- '*' # Must quote since "*" is a YAML reserved character
jobs:
- job: TestHarnessWindows
displayName: 'Test Harness Windows'
variables:
TEST_HARNESS: "true"
TRAVIS_OS_NAME: "windows"
TRAVIS: "true"
TRAVIS_PULL_REQUEST: $(System.PullRequest.PullRequestNumber)
TRAVIS_PULL_REQUEST_SHA: $(Build.SourceVersion)
pool:
vmImage: 'windows-latest'
timeoutInMinutes: 360
steps:
- checkout: self
persistCredentials: true
path: enigma-dev
- powershell: |
Get-Service 'Windows Audio'
Start-Service 'Windows Audio'
Get-Service 'Windows Audio'
displayName: 'Enable Windows Audio'
- script: C:\msys64\msys2_shell.cmd -defterm -mingw64 -no-start -here -lc "printenv"
displayName: 'printenv'
- script: |
(robocopy $(Build.SourcesDirectory) C:\enigma-dev /COPYALL /E) ^& IF %ERRORLEVEL% LEQ 1 exit 0
- script: C:\msys64\msys2_shell.cmd -defterm -no-start -c "pacman -Sy --noconfirm --needed git make rsync mingw-w64-x86_64-toolchain mingw-w64-x86_64-boost mingw-w64-x86_64-pugixml mingw-w64-x86_64-rapidjson mingw-w64-x86_64-yaml-cpp mingw-w64-x86_64-grpc mingw-w64-x86_64-protobuf mingw-w64-x86_64-glm mingw-w64-x86_64-libpng mingw-w64-x86_64-re2 mingw-w64-x86_64-box2d mingw-w64-x86_64-libffi mingw-w64-x86_64-glew mingw-w64-x86_64-openal mingw-w64-x86_64-dumb mingw-w64-x86_64-alure mingw-w64-x86_64-libmodplug mingw-w64-x86_64-libvorbis mingw-w64-x86_64-libogg mingw-w64-x86_64-flac mingw-w64-x86_64-mpg123 mingw-w64-x86_64-libsndfile mingw-w64-x86_64-libgme mingw-w64-x86_64-SDL2 mingw-w64-x86_64-SDL2_mixer mingw-w64-x86_64-libepoxy mingw-w64-x86_64-gtest mingw-w64-x86_64-libmodplug lcov
displayName: Install mingw stuff
- script: |
python3 -m pip install --upgrade Pillow
C:\msys64\msys2_shell.cmd -defterm -mingw64 -no-start -here -lc "ls"
displayName: 'install pillow show msys working dir'
- script: C:\msys64\msys2_shell.cmd -defterm -mingw64 -no-start -here -lc "ls"
displayName: 'msys working dir with workingDirectory: c:\enigma-dev'
workingDirectory: C:\enigma-dev
- script: ls
- script: C:\msys64\msys2_shell.cmd -defterm -mingw64 -no-start -c "ls && cd C:/enigma-dev && mkdir test-harness-out && make all"
workingDirectory: C:\enigma-dev
- script: |
C:\msys64\msys2_shell.cmd -defterm -mingw64 -no-start -here -lc "pacman -Q"
- script: C:\msys64\msys2_shell.cmd -defterm -mingw64 -no-start -here -lc "ls && ./test-runner.exe"
displayName: 'Run Test-Runner'
workingDirectory: C:\enigma-dev
- task: PublishBuildArtifacts@1
displayName: 'Push Build Artifacts'
inputs:
pathtoPublish: 'C:\enigma-dev\test-harness-out\'