From 85c82c4479f1bc53211cb04bfde75b841575f352 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Sun, 12 May 2019 21:37:25 +0200 Subject: [PATCH] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 073cb008f..f01f93755 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -50,3 +50,37 @@ jobs: buildroot-external/rootfs-overlay/usr/libexec/* \ buildroot-external/rootfs-overlay/usr/lib/rauc/* displayName: 'Run ShellCheck' + + +- job: 'Release' + condition: and(startsWith(variables['Build.SourceBranch'], 'refs/tags'), succeeded('ShellCheck')) + dependsOn: 'ShellCheck' + pool: + vmImage: 'ubuntu-16.04' + container: 'ubuntu:18.04' + strategy: + maxParallel: 1 + matrix: + OpenVirtualAppliance: + board: 'ova' + steps: + - script: | + apt-get update && apt-get install -y --no-install-recommends \ + apt-transport-https ca-certificates curl \ + gpg-agent software-properties-common + + curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - + add-apt-repository "deb https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" + + apt-get update && apt-get install -y --no-install-recommends \ + docker-ce + displayName: 'Setup docker' + - script: | + apt-get update && apt-get install -y --no-install-recommends \ + wget patch vim cpio python unzip rsync bc bzip2 ncurses-dev \ + git make g++ file perl bash binutils locales qemu-utils bison flex + displayName: 'Setup buildroot' + - script: dockerd -s vfs &> /dev/null & + displayName: 'Start docker' + - script: make $(board) + displayName: 'Build $(board)'