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

[ci] move from drone to azure

parent df83c247
No related branches found
No related tags found
No related merge requests found
# kate: indent-width 2;
resources:
repositories:
- repository: templates
type: github
name: dune-community/dune-xt-ci
endpoint: dune-xt-ci
jobs:
- template: azure-job-template.yml@templates
parameters:
dockerimage: debian-unstable_gcc_full
jobname: 'unstable_gcc'
module: 'dune-gdt'
- template: azure-job-template.yml@templates
parameters:
dockerimage: debian_gcc_full
jobname: 'gcc'
module: 'dune-gdt'
- template: azure-job-template.yml@templates
parameters:
dockerimage: debian_clang_full
jobname: 'clang'
module: 'dune-gdt'
#!/bin/bash
#
# ~~~
# This file is part of the dune-gdt project:
# https://github.com/dune-community/dune-gdt
# Copyright 2010-2018 dune-gdt developers and contributors. All rights reserved.
# License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
# or GPL-2.0+ (http://opensource.org/licenses/gpl-license)
# with "runtime exception" (http://www.dune-project.org/license.html)
# Authors:
# Felix Schindler (2017)
# René Fritze (2016 - 2018)
# Tobias Leibner (2018)
# ~~~
set -ex
MY_BUILD_DIR=${DUNE_BUILD_DIR}/${MY_MODULE}
cd ${SUPERDIR}
${SRC_DCTRL} ${BLD} --only=${MY_MODULE} configure
${SRC_DCTRL} ${BLD} --only=${MY_MODULE} make
${SRC_DCTRL} ${BLD} --only=${MY_MODULE} bexec ninja -v -j 1 check
# if [ "X${TRAVIS_PULL_REQUEST}" != "Xfalse" ] ; then
# ${SUPERDIR}/.travis/init_sshkey.sh ${encrypted_95fb78800815_key} ${encrypted_95fb78800815_iv} keys/dune-community/dune-gdt-testlogs
# source ${SUPERDIR}/scripts/bash/retry_command.bash
# retry_command ${SUPERDIR}/scripts/bash/travis_upload_test_logs.bash ${MY_BUILD_DIR}/dune/gdt/test/
# fi
# clang coverage currently disabled for being too mem hungry
if [[ ${CC} == *"clang"* ]] ; then
exit 0
fi
if [[ ${DRONE_BUILD_EVENT} != "push" ]] ; then
exit 0
fi
pushd ${MY_BUILD_DIR}
COVERAGE_INFO=${PWD}/coverage.info
lcov --directory . --output-file ${COVERAGE_INFO} -c
for d in "dune-common" "dune-pybindxi" "dune-geometry" "dune-istl" "dune-grid" "dune-alugrid" "dune-uggrid" "dune-localfunctions" \
"dune-xt-common" "dune-xt-functions" "dune-xt-la" "dune-xt-grid" ; do
lcov --directory . --output-file ${COVERAGE_INFO} -r ${COVERAGE_INFO} "${SUPERDIR}/${d}/*"
done
lcov --directory . --output-file ${COVERAGE_INFO} -r ${COVERAGE_INFO} "${SUPERDIR}/${MY_MODULE}/dune/xt/*/test/*"
cd ${SUPERDIR}/${MY_MODULE}
${MY_BUILD_DIR}/run-in-dune-env pip install --no-cache codecov
${MY_BUILD_DIR}/run-in-dune-env codecov -v -X gcov -X coveragepy -F ctest -f ${COVERAGE_INFO} -t ${CODECOV_TOKEN}
popd
#!/bin/bash
#
# ~~~
# This file is part of the dune-gdt project:
# https://github.com/dune-community/dune-gdt
# Copyright 2010-2018 dune-gdt developers and contributors. All rights reserved.
# License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
# or GPL-2.0+ (http://opensource.org/licenses/gpl-license)
# with "runtime exception" (http://www.dune-project.org/license.html)
# Authors:
# René Fritze (2018)
# Tobias Leibner (2018)
# ~~~
set -e
set -x
source ${SUPERDIR}/scripts/bash/retry_command.bash
cd ${SUPERDIR}
${SRC_DCTRL} ${BLD} --only=${MY_MODULE} configure
${SRC_DCTRL} ${BLD} --only=${MY_MODULE} bexec ${BUILD_CMD}
${SRC_DCTRL} ${BLD} --only=${MY_MODULE} bexec ${BUILD_CMD} bindings
${SRC_DCTRL} ${BLD} --only=${MY_MODULE} bexec ${BUILD_CMD} test_python
if [[ ${DRONE_BUILD_EVENT} != "push" ]] ; then
exit 0
fi
cd ${SUPERDIR}/${MY_MODULE}
${DUNE_BUILD_DIR}/${MY_MODULE}/run-in-dune-env pip install codecov
${DUNE_BUILD_DIR}/${MY_MODULE}/run-in-dune-env codecov -X gcov -F pytest -t ${CODECOV_TOKEN}
Subproject commit e54e9c47772d975915c86014f9a84315d74d38fd
[submodule ".vcsetup"]
path = .vcsetup
url = https://github.com/dune-community/vcsetup.git
[submodule ".ci/shared"]
path = .ci/shared
url = https://github.com/dune-community/dune-xt-ci
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