Changeset 18398
- Timestamp:
- 08/15/14 10:03:09 (11 years ago)
- Location:
- issm/trunk-jpl
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/configure.ac
r18372 r18398 14 14 AC_PROG_F77([ifort g77 gfortran]) 15 15 16 AC_F77_LIBRARY_LDFLAGS16 #AC_F77_LIBRARY_LDFLAGS 17 17 18 18 #Libraries and linking 19 AC_PATH_XTRA #figure out X library and include paths19 #AC_PATH_XTRA #figure out X library and include paths 20 20 21 21 #AUTOMAKE -
issm/trunk-jpl/jenkins/imac-012301-gil
r18387 r18398 13 13 --with-matlab-dir=$MATLAB_DIR \ 14 14 --with-triangle-dir=$ISSM_DIR/externalpackages/triangle/install \ 15 --with-metis-dir=$ISSM_DIR/externalpackages/metis/install \16 15 --with-mpi-include=$ISSM_DIR/externalpackages/mpich/install/include \ 17 --with-mpi-libflags=" $ISSM_DIR/externalpackages/mpich/install/lib/libpmpich.a $ISSM_DIR/externalpackages/mpich/install/lib/libmpich.a $ISSM_DIR/externalpackages/mpich/install/lib/libmpl.a " \ 18 --with-fortran-lib="/usr/local/gfortran/lib/libgfortran.a" \ 19 --with-math-lib="/usr/lib/libm.dylib" \ 20 --with-graphics-lib="/usr/X11/lib/libX11.dylib" \ 21 --with-numthreads=8 \ 16 --with-mpi-libflags="-L$ISSM_DIR/externalpackages/mpich/install/lib -lpmpich -lmpich -lmpl" \ 22 17 --with-petsc-dir=$ISSM_DIR/externalpackages/petsc/install \ 23 --with-blas-lapack-dir=$ISSM_DIR/externalpackages/petsc/install \24 18 --with-scalapack-dir=$ISSM_DIR/externalpackages/petsc/install/ \ 25 19 --with-mumps-dir=$ISSM_DIR/externalpackages/petsc/install \ 20 --with-metis-dir=$ISSM_DIR/externalpackages/petsc/install \ 21 --with-numthreads=8 \ 22 --enable-debugging \ 26 23 --enable-development' 27 24 … … 60 57 shell2junit install.sh " 61 58 62 63 59 #---------------------# 64 60 # 4: ISSM Compilation # … … 70 66 ISSM_COMPILATION="yes" 71 67 72 #----------------------#73 # 5: Mail notification #74 #----------------------#75 76 #Mail delivery. If SKIPMAIL="no", the html nightly run report will be77 #sent to the adresses present in $ISSM_DIR/cron/mailinglist.78 SKIPMAIL="no"79 80 #Sender email address81 EMAIL_ADRESS="eric.larour@jpl.nasa.gov"82 83 #Mailing list84 MAILINGLIST="eric.larour@jpl.nasa.gov"85 86 68 #------------------------# 87 # 6: Nightly run options #69 # 5: Nightly run options # 88 70 #------------------------# 89 71 -
issm/trunk-jpl/jenkins/jenkins.sh
r17410 r18398 3 3 #It then processes the results and sends an email to the Ice developpers. 4 4 5 #some functions6 function timer() #{{{7 {8 if [[ $# -eq 0 ]]; then9 echo $(date '+%s')10 else11 local stime=$112 etime=$(date '+%s')13 14 if [[ -z "$stime" ]]; then stime=$etime; fi15 16 dt=$((etime - stime))17 ds=$((dt % 60))18 dm=$(((dt / 60) % 60))19 dh=$((dt / 3600))20 printf '%d:%02d:%02d' $dh $dm $ds21 fi22 } #}}}23 function todaydate() #{{{24 {25 suffix=`date | awk '{printf("%s-%s-%s %s",$2,$3,$6,$4);}'`26 echo $suffix;27 } #}}}28 function host_name() #{{{29 {30 #return host name depending on the OS31 if [ "$1" = "win7" ]32 then33 HOST_NAME=`hostname | sed 's/-//g'`;34 else35 HOST_NAME=`hostname -s | sed 's/-//g'`;36 fi37 echo $HOST_NAME;38 } #}}}39 function pause() #{{{40 {41 pid=`ps aux -W | grep $1 | awk '{printf("%s\n",$1);}'`42 43 while [ -n "$pid" ]44 do45 pid=`ps aux -W | grep $1 | awk '{printf("%s\n",$1);}'`46 done47 }48 #}}}49 50 5 #Get configuration 51 6 #Source config file{{{ … … 63 18 source $1; 64 19 #}}} 65 #Initialize variables {{{ 66 TODAY=$(todaydate); 20 #Get Operating system (OS) name{{{ 67 21 OS=$(uname -s) 68 22 if [[ $OS == "CYGWIN_NT-6.1-WOW64" ]]; then 69 23 OS="win7"; 70 24 fi 71 HOST_NAME=$(host_name $OS);72 START_TIME=$(timer);73 ISSM_RELEASE=$(basename $(echo $REPOSITORY));74 USER=$(whoami);75 INIT_PATH=$(pwd);76 25 #}}} 77 26 … … 212 161 rm -rf $ISSM_DIR/execution/* 213 162 214 #Prepare info.log215 #{{{216 rm -rf $ISSM_DIR/nightlylog217 mkdir $ISSM_DIR/nightlylog218 INSTALL_TIME=$(timer)219 ELAPSED=$(timer $START_TIME)220 VERSION=$(svnversion $ISSM_DIR)221 cat << END > $ISSM_DIR/nightlylog/info.log222 name: $(echo $NAME)223 today: $(echo $TODAY)224 user: $(echo $USER)225 host: $(echo $HOST_NAME)226 OS: $(echo $OS)227 release: $(echo $ISSM_RELEASE)228 init_path: $(echo $INIT_PATH)229 is_matlab: $(echo $MATLAB_TEST)230 is_python: $(echo $PYTHON_TEST)231 elapsed_install: $(echo $ELAPSED)232 version: $(echo $VERSION)233 END234 #}}}235 236 163 #matlab tests 237 164 if [ $MATLAB_TEST -eq 1 ]; then 238 165 #Launch all tests on different cpus {{{ 239 MATLAB_START_TIME=$(timer);240 166 for (( i=1;i<=$NUMCPUS_RUN;i++ )) 241 167 do 242 168 #Launch matlab and the nightly run script 243 169 cat > $ISSM_DIR/nightlylog/matlab_run$i.m << EOF 244 warning off %necessary to avoid a info.log of several Go for parallel runs170 warning off %necessary to avoid a log of several Go for parallel runs 245 171 try, 246 172 $(if [ "$MATLAB_NROPTIONS" = "" ] … … 269 195 #wait until matlab closes 270 196 if [ "$OS" = "win7" ]; then 271 pause MATLAB 197 pid=$(ps aux -W | grep MATLAB | awk '{printf("%s\n",MATLAB);}') 198 199 while [ -n "$pid" ] 200 do 201 pid=$(ps aux -W | grep MATLAB | awk '{printf("%s\n",MATLAB);}') 202 done 272 203 else 273 204 wait … … 284 215 #filter out windows characters: 285 216 cat matlab_log.log | tr -cd '\11\12\40-\176' > matlab_log.log2 && mv matlab_log.log2 matlab_log.log 286 287 #}}}288 #Complete info.log {{{289 if [ $(cat matlab_log.log | grep "MATLABEXITEDCORRECTLY" | wc -l) -eq $NUMCPUS_RUN ]290 then291 MATLABCRASH=0292 else293 MATLABCRASH=1294 fi295 ELAPSED=$(timer $MATLAB_START_TIME)296 cat << END >> $ISSM_DIR/nightlylog/info.log297 elapsed_matlab: $(echo $ELAPSED)298 matlab_crash: $(echo $MATLABCRASH)299 END300 217 #}}} 301 218 fi … … 312 229 done 313 230 314 #wait until python closes315 if [ "$OS" = "win7" ]; then316 pause MATLAB317 else318 wait319 fi320 321 231 #concatenate reports 322 232 cd $ISSM_DIR/nightlylog/ … … 327 237 done 328 238 #}}} 329 #Complete info.log {{{ 330 if [ $(cat python_log.log | grep "PYTHONEXITEDCORRECTLY" | wc -l) -eq $NUMCPUS_RUN ] 331 then 332 PYTHONCRASH=0 333 else 334 PYTHONCRASH=1 335 fi 336 ELAPSED=$(timer $PYTHON_START_TIME) 337 cat << END >> $ISSM_DIR/nightlylog/info.log 338 elapsed_python: $(echo $ELAPSED) 339 python_crash: $(echo $PYTHONCRASH) 340 END 341 #}}} 342 fi 343 344 #complete info.log 345 #{{{ 346 ELAPSED=$(timer $START_TIME) 347 cat << END >> $ISSM_DIR/nightlylog/info.log 348 elapsed_total: $(echo $ELAPSED) 349 END 350 #}}} 239 fi 351 240 352 241 #process logs to be junit compatible
Note:
See TracChangeset
for help on using the changeset viewer.