Commit 1d1e2c12 authored by Emmanuel Promayon's avatar Emmanuel Promayon
Browse files

Merge branch 'promayoe-develop-patch-21391' into 'develop'

redirecting post build log to proper log directory

See merge request !180
parents 6905a8be 73f1b828
......@@ -183,6 +183,7 @@ CHECK_LOG=$(pwd)/${PROJECT_LOG_DIR}/check-environment.log
PACKAGE_LOG=$(pwd)/${PROJECT_LOG_DIR}/prepare-package-environment.log
BUILD_PACKAGE_LOG=$(pwd)/${PROJECT_LOG_DIR}/build-package.log
SUMMARY_LOG=$(pwd)/${PROJECT_LOG_DIR}/summary.log
LOG_DIR=$(dirname ${BUILD_PACKAGE_LOG})
ARTIFACT_URL="https://gricad-gitlab.univ-grenoble-alpes.fr/CamiTK/CamiTK/-/jobs/$CI_JOB_ID/artifacts/raw/packaging-debian-unstable-develop/log"
# output all information to report file
......@@ -191,6 +192,7 @@ echo "Job....................... $CI_JOB_NAME" >> ${CHECK_LOG}
echo "Job id.................... $CI_JOB_ID" >> ${CHECK_LOG}
echo "Build Directory........... $PROJECT_BUILD_DIR" >> ${CHECK_LOG}
echo "Log Directory............. $PROJECT_LOG_DIR" >> ${CHECK_LOG}
ecno "Log Directory (full)...... $LOG_DIR" >> ${CHECK_LOG}
echo "Branch.................... $CI_COMMIT_REF_NAME" >> ${CHECK_LOG}
echo "CAMITK_CI_MODE............ $CAMITK_CI_MODE" >> ${CHECK_LOG}
echo "CAMITK_CI_STAGE........... $CAMITK_CI_STAGE" >> ${CHECK_LOG}
......@@ -257,16 +259,18 @@ echo "Changes files:"
ls -la $GBP_CHANGES_FILE
echo "All files:"
ls -la
echo "Log files in $LOG_DIR:"
ls -la $LOG_DIR
# ---------------------- lintian ----------------------
echo "========================="
lintianHost=$(lintian --version)
lintian -iIE --pedantic $GBP_CHANGES_FILE > >(tee ../log/lintian.log) 2>&1
lintian -iIE --pedantic $GBP_CHANGES_FILE > >(tee $LOG_DIR/lintian.log) 2>&1
# ---------------------- autopkgtest ----------------------
echo "========================="
# we need to write a bash script in order to run autopkgtest inside the sid-dev docker
autopkgtest -l ../log/autopkgtest.log $GBP_CHANGES_FILE -- null
autopkgtest -l $LOG_DIR/autopkgtest.log $GBP_CHANGES_FILE -- null
EOF
echo "## Make ~/.gbp-postbuild.sh executable" > >(tee --append ${PACKAGE_LOG}) 2>&1
......@@ -389,11 +393,14 @@ echo "## ls current dir" > >(tee --append ${BUILD_PACKAGE_LOG}) 2
ls -la . > >(tee --append ${BUILD_PACKAGE_LOG}) 2>&1
echo "## ls .." > >(tee --append ${BUILD_PACKAGE_LOG}) 2>&1
ls -la .. > >(tee --append ${BUILD_PACKAGE_LOG}) 2>&1
LOG_DIR=$(dirname ${BUILD_PACKAGE_LOG})
echo "## ls $LOG_DIR" > >(tee --append ${BUILD_PACKAGE_LOG}) 2>&1
echo "## ls LOG_DIR ($LOG_DIR)" > >(tee --append ${BUILD_PACKAGE_LOG}) 2>&1
ls -la $LOG_DIR > >(tee --append ${BUILD_PACKAGE_LOG}) 2>&1
echo "## ls camitk-build" > >(tee --append ${BUILD_PACKAGE_LOG}) 2>&1
ls -la camitk-build > >(tee --append ${BUILD_PACKAGE_LOG}) 2>&1
echo "## lib directory" > >(tee --append ${BUILD_PACKAGE_LOG}) 2>&1
ls -la camitk-build/lib > >(tee --append ${BUILD_PACKAGE_LOG}) 2>&1
echo "## so file version $VERSION_MAJOR.$VERSION_MINOR.$VERSION_PATCH" > >(tee --append ${BUILD_PACKAGE_LOG}) 2>&1
ls -la camitk-build/lib/x86_64-linux-gnu > >(tee --append ${BUILD_PACKAGE_LOG}) 2>&1
# check overrides
echo "## check overrides for libcamitkcore.so with with objdump" > >(tee --append ${BUILD_PACKAGE_LOG}) 2>&1
......
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