Skip to content
Snippets Groups Projects
Unverified Commit 468e3c02 authored by lintao@ihep.ac.cn's avatar lintao@ihep.ac.cn Committed by GitHub
Browse files

Merge pull request #22 from mirguest/ci

WIP: Prepare the CI
parents 399015ff b71b1753
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
......@@ -60,9 +60,10 @@ install:
# command to run tests
script:
- docker run -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; ln -s /usr/lib64/liblzma.so.5.2.2 /usr/lib64/liblzma.so; echo 'hello world'"
- 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; bash .build.ci.sh"
# 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'
# Don't send e-mail notifications
notifications:
......
......@@ -61,3 +61,15 @@ RUN if [ "$CVMFSMOD" = "INSIDE" ]; then \
# $ mount -t cvmfs container.ihep.ac.cn /cvmfs/container.ihep.ac.cn
# $ mount -t cvmfs cepcsw.ihep.ac.cn /cvmfs/cepcsw.ihep.ac.cn
##############################################################################
# Install necessary packages
##############################################################################
RUN yum install -y git
RUN yum install -y libglvnd-devel
RUN yum install -y mesa-libGLU-devel
RUN yum install -y libXmu-devel
RUN yum install -y motif-devel
# For runtime
RUN yum install -y compat-db47
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