From 9240d418e15520f54394e9e70411d752fd251e69 Mon Sep 17 00:00:00 2001 From: Tanner Gooding Date: Wed, 5 Jun 2019 19:34:23 -0700 Subject: [PATCH] Adding an azure-pipelines.yml file. (#101) --- LLVMSharp.sln | 1 + scripts/azure-pipelines.yml | 72 +++++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 scripts/azure-pipelines.yml diff --git a/LLVMSharp.sln b/LLVMSharp.sln index c349d314..42ec6587 100644 --- a/LLVMSharp.sln +++ b/LLVMSharp.sln @@ -41,6 +41,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LLVMSharp.UnitTests", "test EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "scripts", "scripts", "{9BF3ABB4-8193-4E44-AD0D-82F4C40887E6}" ProjectSection(SolutionItems) = preProject + scripts\azure-pipelines.yml = scripts\azure-pipelines.yml scripts\build.ps1 = scripts\build.ps1 scripts\build.sh = scripts\build.sh scripts\cibuild.cmd = scripts\cibuild.cmd diff --git a/scripts/azure-pipelines.yml b/scripts/azure-pipelines.yml new file mode 100644 index 00000000..bcef71a3 --- /dev/null +++ b/scripts/azure-pipelines.yml @@ -0,0 +1,72 @@ +trigger: +- master + +pr: +- master + +jobs: +- job: windows_debug_x86 + pool: + name: Hosted + demands: Cmd + steps: + - task: BatchScript@1 + displayName: 'Run scripts/cibuild.cmd' + inputs: + filename: scripts/cibuild.cmd + arguments: '-configuration Debug -architecture x86' + +- job: windows_release_x86 + pool: + name: Hosted + demands: Cmd + steps: + - task: BatchScript@1 + displayName: 'Run scripts/cibuild.cmd' + inputs: + filename: scripts/cibuild.cmd + arguments: '-configuration Release -architecture x86' + +- job: windows_debug_x64 + pool: + name: Hosted + demands: Cmd + steps: + - task: BatchScript@1 + displayName: 'Run scripts/cibuild.cmd' + inputs: + filename: scripts/cibuild.cmd + arguments: '-configuration Debug -architecture x64' + +- job: windows_release_x64 + pool: + name: Hosted + demands: Cmd + steps: + - task: BatchScript@1 + displayName: 'Run scripts/cibuild.cmd' + inputs: + filename: scripts/cibuild.cmd + arguments: '-configuration Release -architecture x64' + +- job: ubuntu_1604_debug_x64 + pool: + name: Hosted Ubuntu 1604 + steps: + - task: Bash@3 + displayName: 'Run scripts/cibuild.sh' + inputs: + targetType: filePath + filePath: ./scripts/cibuild.sh + arguments: '--configuration Debug --architecture x64' + +- job: ubuntu_1604_release_x64 + pool: + name: Hosted Ubuntu 1604 + steps: + - task: Bash@3 + displayName: 'Run scripts/cibuild.sh' + inputs: + targetType: filePath + filePath: ./scripts/cibuild.sh + arguments: '--configuration Release --architecture x64'