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

Merge branch 'lintao/ci/k8s' into 'master'

WIP: test the k8s runner.

See merge request cepc/CEPCSW!202
parents e40c0e2b 9b66f332
No related branches found
No related tags found
No related merge requests found
......@@ -62,6 +62,21 @@ build:lcg:el7:
reports:
junit: build.${CEPCSW_LCG_VERSION}.${CEPCSW_LCG_PLATFORM}/cepcsw-ctest-result.xml
##############################################################################
# Build & Test in k8s (LCG)
##############################################################################
build:lcg:el7:k8s:
extends: .build_template
image: cepc/cepcsw-cvmfs:el7
tags:
- k8s # using k8s as runner
script:
- sed -i 's%^CVMFS_HTTP_PROXY=.*%CVMFS_HTTP_PROXY=http://squid-01.ihep.ac.cn:3128%' /etc/cvmfs/default.local
- for repo in sft.cern.ch geant4.cern.ch cepcsw.ihep.ac.cn; do [ -d "/cvmfs/$repo" ] || mkdir /cvmfs/$repo; sudo mount -t cvmfs $repo /cvmfs/$repo; done
- bash ./.build.ci.sh
- bash ./.test.ci.sh
##############################################################################
# Build the docs
##############################################################################
......
......@@ -60,7 +60,7 @@ function setup-install-area() {
local installarea=$THISSCRITDIR/InstallArea/$CEPCSW_LCG_PLATFORM
if [ ! -d "$installarea" ]; then
info: "The InstallArea is not created yet. Please run ./build.sh first, then source setup.sh again."
return
return 0
fi
export PATH=$installarea/bin:$PATH
......
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