Update azure-pipelines.yml for Azure Pipelines

This commit is contained in:
Pascal Vizeli 2019-05-12 21:37:25 +02:00
parent e21f59111c
commit 85c82c4479

View File

@ -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)'