From 40d727cf8519e21b560ab5e6e939829e0acd6f3c Mon Sep 17 00:00:00 2001 From: Wolfgang Thaller Date: Fri, 27 Sep 2019 23:06:18 +0200 Subject: [PATCH] Add an azure build --- azure-pipelines.yml | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000000..54db327cd8 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,45 @@ +trigger: +- master +jobs: + +- job: Linux + pool: + vmImage: 'ubuntu-16.04' + container: + image: 'ubuntu:18.04' + options: "--name ci-container -v /usr/bin/docker:/tmp/docker:ro" + steps: + - script: | + /tmp/docker exec -t -u 0 ci-container \ + sh -c "apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -o Dpkg::Options::="--force-confold" -y install sudo" + displayName: set up sudo + - checkout: self + submodules: true + - script: | + whoami + pwd + sudo apt-get install -y \ + cmake libgmp-dev libmpfr-dev libmpc-dev \ + libboost-all-dev bison texinfo \ + ruby + displayName: 'install prerequisites' + - script: | + mkdir build + cd build + ../build-toolchain.bash --no-carbon + displayName: 'build' + +- job: macOS + pool: + vmImage: 'macOS-10.14' + steps: + - checkout: self + submodules: true + - script: | + brew install boost cmake gmp mpfr libmpc bison + displayName: 'brew prerequisites' + - script: | + mkdir build + cd build + ../build-toolchain.bash --no-carbon + displayName: build