-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjenkins-build.sh
28 lines (22 loc) · 984 Bytes
/
jenkins-build.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
#!/bin/bash
# Build script for puma.pnl.gov
# TODO parameterize vs hard-coded path?
CHAPEL_HOME=/home/zale916/software/chapel-1.19.0
WORKSPACE=/lustre/jenkins/chgl-workspace
# Load required modules
export MODULEPATH=/home/zale916/software/modules:$MODULEPATH
module load gcc/8.2.0
module load openmpi/3.1.3
module load hdf5/1.10.5
module load zmq/4.3.1
module load chapel/1.19.0
# Initialize Chapel environment
cd $CHAPEL_HOME
source util/setchplenv.sh
# Execute peformance tests
export GASNET_BACKTRACE=1
export CHPL_TEST_PERF_DIR=$WORKSPACE/test_performance/dat
cd $WORKSPACE/test_performance
bash -c "start_test --performance -junit-xml -junit-xml-file $WORKSPACE/test_performance/Logs/chapel-perf-tests.xml -numlocales 4"
# Generated HTML does not work locally or in Jenkins due to https://wiki.jenkins.io/display/JENKINS/Configuring+Content+Security+Policy. Copy files that use local resources instead.
cp -r $WORKSPACE/test_performance/html $WORKSPACE/test_performance/dat