Skip to content
Snippets Groups Projects
Commit b71b1753 authored by lintao@ihep.ac.cn's avatar lintao@ihep.ac.cn
Browse files

WIP: another testing, use ps to dump info every 1 min.

parent f81d5d13
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
# This is wrapper to run the build.sh on CI
source setup.sh
./build.sh >& mylog.sh &
buildpid=$!
while ps -p $buildpid 2>/dev/null ; do
sleep 60
done
tail -n100 mylog.sh
...@@ -61,7 +61,7 @@ install: ...@@ -61,7 +61,7 @@ install:
# command to run tests # command to run tests
script: 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 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 | tee build.log 2> /dev/null ; tail -n100 build.log" - docker exec -ti CI_CONTAINER /bin/bash -c "cd /workspace; bash .build.ci.sh"
# If run singularity inside docker: # 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' # - 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'
......
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