Adapt nightly build pipeline to new CI environments

This commit is contained in:
Dennis Klein 2018-11-28 17:01:23 +01:00 committed by Dennis Klein
parent 44c0fe5abf
commit a3fdfcad9e

View File

@ -14,6 +14,27 @@ def buildMatrix(List specs, Closure callback) {
deleteDir() deleteDir()
checkout scm checkout scm
sh """\
echo "export SIMPATH=\${SIMPATH_PREFIX}${spec.fairsoft}" >> Dart.cfg
echo "export FAIRSOFT_VERSION=${spec.fairsoft}" >> Dart.cfg
"""
if ((spec.os == 'Debian8') && (spec.compiler == 'gcc8.1')) {
sh '''\
echo "source /etc/profile.d/modules.sh" >> Dart.cfg
echo "module use /cvmfs/it.gsi.de/modulefiles" >> Dart.cfg
echo "module load compiler/gcc/8" >> Dart.cfg
'''
}
sh '''\
echo "export BUILDDIR=$PWD/build" >> Dart.cfg
echo "export SOURCEDIR=$PWD" >> Dart.cfg
echo "export PATH=\\\$SIMPATH/bin:\\\$PATH" >> Dart.cfg
echo "export GIT_BRANCH=dev" >> Dart.cfg
echo "export EXTRA_FLAGS='-DCMAKE_CXX_COMPILER=g++'" >> Dart.cfg
echo "echo \\\$PATH" >> Dart.cfg
'''
sh 'cat Dart.cfg'
callback.call(spec, label) callback.call(spec, label)
deleteDir() deleteDir()
@ -35,16 +56,9 @@ pipeline{
steps{ steps{
script { script {
parallel(buildMatrix([ parallel(buildMatrix([
[os: 'Debian8', arch: 'x86_64', compiler: 'gcc4.9', fairsoft: 'may18'], [os: 'Debian8', arch: 'x86_64', compiler: 'gcc8.1', fairsoft: 'fairmq_dev'],
[os: 'MacOS10.11', arch: 'x86_64', compiler: 'AppleLLVM8.0.0', fairsoft: 'may18'], //[os: 'MacOS10.13', arch: 'x86_64', compiler: 'AppleLLVM10.0.0', fairsoft: 'may18'],
[os: 'MacOS10.13', arch: 'x86_64', compiler: 'AppleLLVM9.0.0', fairsoft: 'may18'],
]) { spec, label -> ]) { spec, label ->
sh '''\
echo "export BUILDDIR=$PWD/build" >> Dart.cfg
echo "export SOURCEDIR=$PWD" >> Dart.cfg
echo "export PATH=$SIMPATH/bin:$PATH" >> Dart.cfg
echo "export GIT_BRANCH=dev" >> Dart.cfg
'''
sh './Dart.sh Nightly Dart.cfg' sh './Dart.sh Nightly Dart.cfg'
sh './Dart.sh Profile Dart.cfg' sh './Dart.sh Profile Dart.cfg'
}) })