forked from lanl/Draco
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathats1-release.sh
executable file
·27 lines (24 loc) · 962 Bytes
/
ats1-release.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
#!/bin/bash
# export dry_run=1
# config and build on front-end
echo -e "\nConfigure and build $package for $buildflavor-$rttversion."
echo
export steps="config build"
logfile="$source_prefix/logs/release-$buildflavor-$rttversion-cb${jobnameext}.log"
run "$draco_script_dir/release.msub &> $logfile"
# Run the tests on the back-end.
export steps="test"
logfile="$source_prefix/logs/release-$buildflavor-$rttversion-t${jobnameext}.log"
cmd="sbatch -J rel-${package:0:3}-${buildflavor: -10}-$rttversion -t 8:00:00 \
-N 1 $partition \
--gres=craynetwork:0 -o $logfile $draco_script_dir/release.msub"
echo -e "\nTest $package for $buildflavor-$rttversion."
echo "$cmd"
jobid=`eval ${cmd}`
sleep 1m
# trim extra whitespace from number
jobid=`echo ${jobid//[^0-9]/}`
export jobids="$jobid $jobids"
##---------------------------------------------------------------------------##
## End
##---------------------------------------------------------------------------##