aboutsummaryrefslogtreecommitdiff
path: root/azure-pipelines.yml
diff options
context:
space:
mode:
authorMartin Endler <pokusew@seznam.cz>2019-05-12 01:22:55 +0200
committerMartin Endler <pokusew@seznam.cz>2019-05-12 01:22:55 +0200
commitd5c5aee07ecf6f7dedea611ac8651f6f9d8c979e (patch)
treea36ab8f159b548b462e5acb4faefe33214e87cfd /azure-pipelines.yml
parent8fee866f6f0a7940803d4c17ef0b57bb9adcea20 (diff)
downloadqtmips-d5c5aee07ecf6f7dedea611ac8651f6f9d8c979e.tar.gz
qtmips-d5c5aee07ecf6f7dedea611ac8651f6f9d8c979e.tar.bz2
qtmips-d5c5aee07ecf6f7dedea611ac8651f6f9d8c979e.zip
Add Azure Pipelines config
Diffstat (limited to 'azure-pipelines.yml')
-rw-r--r--azure-pipelines.yml43
1 files changed, 43 insertions, 0 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
new file mode 100644
index 0000000..dacc4c6
--- /dev/null
+++ b/azure-pipelines.yml
@@ -0,0 +1,43 @@
+# Azure DevOps Pipelines YAML schema
+# https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=azure-devops&tabs=schema
+
+# build number format
+name: $(Date:yyyyMMdd)$(Rev:.r) # https://docs.microsoft.com/en-us/azure/devops/pipelines/build/options?view=azure-devops&tabs=yaml#build-number-format
+
+trigger:
+ batch: true # batch changes if true, start a new build for every push if false
+ branches:
+ include:
+ - master
+ exclude:
+ - refs/tags/*
+
+pr: none # disable PR triggers
+
+# we use only one stage, so we can directly define its jobs
+
+# jobs run in parallel unless dependsOn is set in job
+# TODO: it would be nice to build automatically for Linux and Windows, too
+jobs:
+
+ - job: build_macos
+ displayName: Build for macOS
+ pool:
+ # see all available images on Microsoft-hosted VMs
+ # https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops
+ vmImage: 'macos-10.14'
+ # tasks catalog: https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/?view=azure-devops
+ steps:
+ # bash is shortcut for task Bash@3
+ # docs: https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/bash?view=azure-devops
+ - bash: brew install qt libelf
+ displayName: Install Qt and libelf using brew
+ - bash: qmake --version
+ displayName: Print qmake version
+ - bash: ./build-macos.sh
+ displayName: Run build script
+ # https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/publish-pipeline-artifact?view=azure-devops
+ - task: PublishPipelineArtifact@0
+ inputs:
+ artifactName: 'qtmips'
+ targetPath: build/qtmips.zip