From 6ba0fe6d7121b920cc2ce142a4877fe40019f1b7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ren=C3=A9=20Fritze?=
 <47802+renefritze@users.noreply.github.com>
Date: Mon, 18 Mar 2019 10:19:59 +0100
Subject: [PATCH] [ci] Set up CI with Azure Pipelines

---
 azure-pipelines.yml | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 azure-pipelines.yml

diff --git a/azure-pipelines.yml b/azure-pipelines.yml
new file mode 100644
index 000000000..10d88d11d
--- /dev/null
+++ b/azure-pipelines.yml
@@ -0,0 +1,24 @@
+
+pool:
+  vmImage: 'Ubuntu-16.04'
+
+variables:
+  DOCKER_TAG: debian-unstable_gcc_full
+  TRAVIS_BRANCH: $(Build.SourceBranchName)
+  TRAVIS_COMMIT: $(Build.SourceVersion)
+
+steps:
+- script: |
+    export MY_MODULE=dune-xt-common
+    export BASEIMAGE="${MY_MODULE}-testing_${DOCKER_TAG}:${TRAVIS_BRANCH/\//_}"
+    export IMAGE="dunecommunity/ci_${MY_MODULE}-testing_${DOCKER_TAG}:${TRAVIS_COMMIT}"
+    # get image with fallback to master branch of the super repo# get image with fallback to master branch of the super repo
+    docker pull dunecommunity/${BASEIMAGE} || export BASEIMAGE="${MY_MODULE}-testing_${DOCKER_TAG}:master" ; docker pull dunecommunity/${BASEIMAGE}
+    docker build --build-arg BASE=${BASEIMAGE} -t ${IMAGE} -f .ci/docker/Dockerfile .
+
+    export ENV_FILE=${HOME}/env
+    python3 ./.travis.make_env_file.py
+    docker inspect ${IMAGE}
+    export DOCKER_RUN="docker run --env-file ${ENV_FILE} ${IMAGE}"
+    ${DOCKER_RUN} /home/dune-ci/src/dune-xt-common/.travis.script.bash
+  displayName: 'docker build'
-- 
GitLab