diff --git a/dockerfiles/docker-entrypoint.sh b/dockerfiles/docker-entrypoint.sh index b310664d..e949e5a8 100755 --- a/dockerfiles/docker-entrypoint.sh +++ b/dockerfiles/docker-entrypoint.sh @@ -58,6 +58,7 @@ LOCAL_ATTIC_DIR=${LOCAL_ATTIC_DIR:-} JAVA_DEBUG=${JAVA_DEBUG:-} JS_DEBUG=${JS_DEBUG:-} NODE_OPTIONS=${NODE_OPTIONS:-} +SKIP_SOURCE_INFO=${SKIP_SOURCE_INFO:-} if [[ $JS_DEBUG ]]; then export NODE_DEBUG_PORT=9229 # LCOV_EXCL_LINE diff --git a/dockerfiles/steps/step-prebake.bash b/dockerfiles/steps/step-prebake.bash index e236c999..04ef239a 100644 --- a/dockerfiles/steps/step-prebake.bash +++ b/dockerfiles/steps/step-prebake.bash @@ -81,7 +81,7 @@ cp -r "$IO_INITIAL_RESOURCES/." "$IO_RESOURCES" repo_root=$IO_FETCH_META # TODO: Pass file name pattern to node command and avoid the loop below -if [[ $LOCAL_ATTIC_DIR != '' ]]; then +if [[ $LOCAL_ATTIC_DIR != '' && -z $SKIP_SOURCE_INFO ]]; then echo 'Annotating XML files with source map information (data-sm="...")' pushd $IO_FETCH_META > /dev/null files=$(find . -name '*.cnxml' -or -name '*.collection.xml') diff --git a/enki b/enki index d6dec82c..70e8b0cc 100755 --- a/enki +++ b/enki @@ -109,6 +109,7 @@ show_help() { --pdb Enable Python debugging --jdb Enable Java debugging --jsdb Enable Javascript debugging + --skip-source-info Skip adding source file/line/column to CNXML elements Status: @@ -170,6 +171,7 @@ while [ -n "$1" ]; do --pdb) PYTHON_DEBUG=1 ;; --jdb) JAVA_DEBUG=1 ;; --jsdb) JS_DEBUG=1 ;; + --skip-source-info) export SKIP_SOURCE_INFO=1 ;; *) echo -e "Invalid argument '$1'" show_help @@ -296,6 +298,7 @@ docker run $ports $interactive $enable_tty \ --env START_AT_STEP \ --env STOP_AT_STEP \ --env LOCAL_SIDELOAD_REPO_PATH \ + --env SKIP_SOURCE_INFO \ --env KCOV_DIR \ --env __CI_KCOV_MERGE_ALL__\ $envs \