From 25dde6a0cad12fd8d8c438fc1b95f898f145702d Mon Sep 17 00:00:00 2001 From: Tao Lin <lintao@ihep.ac.cn> Date: Thu, 10 Sep 2020 21:38:56 +0800 Subject: [PATCH] WIP: as the maximum log is 4MB in Travis-CI, redirect the output to a file. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 97aed24e..ac5b09e1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -61,7 +61,7 @@ install: # command to run tests script: - docker run --privileged -ti --name CI_CONTAINER -v $PKGDIR:/workspace -e COMPILER_TYPE=$COMPILER -e LCG_RELEASE=${LCG_RELEASE} -e STANDARD=${STANDARD} -e COMPILER_VERSION=${COMPILER_VERSION} ${CVMFS_REPOS} -d cepc/cepcsw bash - - docker exec -ti CI_CONTAINER /bin/bash -c "cd /workspace; source setup.sh; ./build.sh" + - docker exec -ti CI_CONTAINER /bin/bash -c "cd /workspace; source setup.sh; ./build.sh >& build.log; tail -n100 build.log" # If run singularity inside docker: # - docker exec -ti CI_CONTAINER /usr/bin/singularity exec -B /cvmfs -B /workspace /cvmfs/container.ihep.ac.cn/singularity/image//SL69/sl69worknode20200729.sif /bin/bash -c 'cd /workspace; source setup.sh; ./build.sh' -- GitLab