From 14d5d72a639f6807e5353958cfb39fbb15a924b8 Mon Sep 17 00:00:00 2001 From: Margen67 Date: Mon, 26 Aug 2019 07:18:16 -1000 Subject: [PATCH] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 63 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 000000000..c793790cb --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,63 @@ +trigger: + branches: + include: + - '*' + exclude: + - gh-pages + paths: + exclude: + - docs/* + - .github/* + - LICENSE + - README.md + - .appveyor.yml + - .travis.yml +pr: + branches: + include: + - '*' + exclude: + - gh-pages + paths: + exclude: + - docs/* + - .github/* + - LICENSE + - README.md + - .appveyor.yml + - .travis.yml + +jobs: +- job: + pool: + vmImage: windows-latest + strategy: + matrix: + Release: + configuration: Release + Checked: + configuration: Checked + steps: + - script: | + git config --global core.autocrlf input + xb setup + displayName: 'Setup' + + - script: xb build --config=$(Configuration) --target=src\xenia-app --target=tests\xenia-cpu-ppc-tests --target=src\xenia-vfs-dump + displayName: 'Build $(Configuration)' + + - script: | + xb gentests + xb test --config=$(Configuration) --no_build + copy xenia-cpu-ppc-test.log $(Build.ArtifactStagingDirectory) + displayName: 'Tests' + + - script: | + cd build\bin\Windows\$(Configuration) + 7z a $(Build.ArtifactStagingDirectory)\xenia-$(Build.SourceBranchName).zip ..\..\..\..\LICENSE xenia.exe xenia.pdb + 7z a $(Build.ArtifactStagingDirectory)\xenia-vfs-dump-$(Build.SourceBranchName).zip ..\..\..\..\LICENSE xenia-vfs-dump.exe xenia-vfs-dump.pdb + displayName: 'Create archives' + + - publish: $(Build.ArtifactStagingDirectory) + artifact: $(configuration) + displayName: Publish artifacts