-
Notifications
You must be signed in to change notification settings - Fork 0
/
jenkinsTest.sh
73 lines (55 loc) · 1.72 KB
/
jenkinsTest.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/bin/bash
DATE=`date +%Y-%m-%d`
export GENIE=$PWD/$GENIE_VERSION
export XSECSPLINEDIR=$PWD/data
#export GUPSBASE=/grid/fermiapp
#source $GUPSBASE/products/genie/externals/setup
# cvmfs is not visible?
#export GUPSBASE=/cvmfs/fermilab.opensciencegrid.org/
#source $GUPSBASE/products/genie/externals/setup
# use larsoft...
source /grid/fermiapp/products/genie/bootstrap_genie_ups.sh
setup root v5_34_25a -q debug:e7:nu
setup lhapdf v5_9_1b -q debug:e7
setup log4cpp v1_1_1b -q debug:e7
cd $GENIE_VERSION
./configure \
--enable-test \
--enable-numi \
--enable-gsl \
--enable-rwght \
--enable-lhapdf \
--with-optimiz-level=O3 \
--with-pythia6-lib=$PYTHIA6_LIBRARY \
--with-lhapdf-lib=$LHAPDF_FQ_DIR/lib \
--with-lhapdf-inc=$LHAPDF_FQ_DIR/include \
--with-log4cpp-lib=$LOG4CPP_FQ_DIR/lib \
--with-log4cpp-inc=$LOG4CPP_FQ_DIR/include \
--with-libxml2-lib=$LIBXML2_FQ_DIR/lib \
--with-libxml2-inc=$LIBXML2_FQ_DIR/include/libxml2 1>configure.out 2>configure.err
make 1>make.out 2>make.err
# compile validation apps
pushd $GENIE/src
if [[ -d validation ]]; then
rm -rf validation
fi
git clone https://github.com/GENIEMC/legacy_validation.git
mv legacy_validation validation
popd
dirs=( "EvScan" "Hadronization" "Intranuke" "MCx" "Merenyi" "NuXSec" "StructFunc" "eA" )
for dir in "${dirs[@]}"
do
cd $GENIE'/src/validation/'$dir
make
done
# get validation data
pushd $GENIE/data
if [[ ! -d validation ]]; then
git clone https://github.com/GENIEMC/legacy_validation_data.git
mv legacy_validation_data validation
fi
popd
cd $GENIE
mkdir -p /scratch/workspace/jenkinsTest/genie_builds/
TAG=`basename $GENIE_VERSION`
tar -zcf /scratch/workspace/jenkinsTest/genie_builds/genie_$TAG'_buildmaster_'$DATE'.tgz' --exclude=".*" *