Skip to content
Snippets Groups Projects
Commit 2f21ff5b authored by Louis Moureaux's avatar Louis Moureaux
Browse files

Add general install script

parent cb81b8e6
No related branches found
No related tags found
1 merge request!11CMakeLists to fetch TUnfold and ProtoDarwin
......@@ -21,9 +21,5 @@ cmake:
script:
- source /cvmfs/cms.cern.ch/cmsset_default.sh
- yum install -y cmake3 python3 zsh
- scram project CMSSW_12_4_0
- cd CMSSW_12_4_0; eval $(scram runtime -sh); cd -
- (cd CMSSW_12_4_0; scram setup $OLDPWD/libgit2.xml)
- cmake3 -B build
- cmake3 --build build -v -j$(nproc)
- ./install.sh
#!/bin/sh
set -e
BASE_DIR=$PWD
# Get a CMSSW if we don't have one
if [ -z $CMSSW_BASE ]; then
cmsrel CMSSW_12_4_0
cd CMSSW_12_4_0
cmsenv
fi
# Set up libgit2
cd $CMSSW_BASE
scram setup ../libgit2.xml
# Download and build supporting tools
cd $BASE_DIR
cmake3 -B .build
cmake3 --build .build -j$(nproc)
cmake3 --build .build --target install -j8
# Set up scram tools in CMSSW
cd $CMSSW_BASE
for xml in $BASE_DIR/tools/etc/*.xml; do
scram setup $xml
done
# Get Core
cd $CMSSW_BASE/src
[ ! -d Core ] && git clone https://gitlab.cern.ch/DasAnalysisSystem/Core.git
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