Commit edc99797 authored by Ewout Helmich's avatar Ewout Helmich
Browse files

Merge branch 'tnutma/bugfix/coverage-multi-package' into 'master'

Support coverage files in multi-output conda recipes

See merge request omegacen/ci-templates!47
parents 6a43b16f 93f93b6d
......@@ -137,8 +137,10 @@ conda_test:
# section after the first error. This would mean that the reports wouldn't get extract if the tests fail and the
# extraction would happen in the `script` section. In contrast, `after_script` always gets executed.
# Determine the folder in which the tests ran.
- CONDA_TEST_SRC_DIR=$(grep -oP '^export SRC_DIR=\K.*$' conda_build_test.log)
# Determine the folder in which the tests ran. Take the first one. (This is fine for multi-output packages
# as the same directory occurs multiple times. But for multiple recipes this is not sufficient).
# TODO: loop over the distinct test folders and join coverage files.
- CONDA_TEST_SRC_DIR=$(grep -oP '^export SRC_DIR=\K.*$' conda_build_test.log | head -n 1)
# Determine if a coverage report or file exists in the conda test directory.
# If so, and if there's not already a coverage report in the current dir,
# move it to the current directory so that it can be picked up as CI artifact
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment