Skip to content
Snippets Groups Projects
Commit 6ba0fe6d authored by René Fritze's avatar René Fritze
Browse files

[ci] Set up CI with Azure Pipelines

parent 48664f0e
No related branches found
No related tags found
No related merge requests found
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'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment