Changeset 24703
- Timestamp:
- 04/08/20 10:36:32 (5 years ago)
- Location:
- issm/trunk-jpl
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/externalpackages/boost/install-1.72-mac-static.sh
r24676 r24703 37 37 ./b2 toolset=darwin link=static install 38 38 39 # Copy binary to install directory40 mkdir ${BOOST_ROOT}/install/bin41 cp bjam ${BOOST_ROOT}/install/bin42 43 39 # Remove any dynamic libraries that may have been compiled 44 40 # 45 41 # TODO: Reconfigure so that dynamic libraries are not compiled at all 46 42 # 47 rm -f $( ls ${BOOST_ROOT}/install/lib/*.dylib)43 rm -f $(find ${BOOST_ROOT}/install/lib -name *.dylib) -
issm/trunk-jpl/packagers/linux/package-issm-linux-binaries-with_dakota.sh
r24702 r24703 49 49 cp ${LIBGFORTRAN} ${LIBGFORTRAN_DIST} 2> /dev/null 50 50 51 # #Run tests52 #echo "Running tests"53 #cd ${ISSM_DIR}/test/NightlyRun51 # Run tests 52 echo "Running tests" 53 cd ${ISSM_DIR}/test/NightlyRun 54 54 55 # #Check that MATLAB tests run56 #echo "Running MATLAB tests"55 # Check that MATLAB tests run 56 echo "Running MATLAB tests" 57 57 58 #rm matlab.log 2> /dev/null58 rm matlab.log 2> /dev/null 59 59 60 # #Run MATLAB tests redirecting output to logfile and suppressing output to console61 #${MATLAB_PATH}/bin/matlab -nojvm -nosplash -r "try, addpath ${ISSM_DIR}/bin ${ISSM_DIR}/lib; runme(${MATLAB_NROPTIONS}); exit; catch me,fprintf('%s',getReport(me)); exit; end" -logfile matlab.log &> /dev/null60 # Run MATLAB tests redirecting output to logfile and suppressing output to console 61 ${MATLAB_PATH}/bin/matlab -nojvm -nosplash -r "try, addpath ${ISSM_DIR}/bin ${ISSM_DIR}/lib; runme(${MATLAB_NROPTIONS}); exit; catch me,fprintf('%s',getReport(me)); exit; end" -logfile matlab.log &> /dev/null 62 62 63 # #Check that MATLAB did not exit in error64 #matlabExitCode=`echo $?`65 #matlabExitedInError=`grep -E "Activation cannot proceed|license" matlab.log | wc -l`63 # Check that MATLAB did not exit in error 64 matlabExitCode=`echo $?` 65 matlabExitedInError=`grep -E "Activation cannot proceed|license" matlab.log | wc -l` 66 66 67 #if [[ ${matlabExitCode} -ne 0 || ${matlabExitedInError} -ne 0 ]]; then68 #echo "----------MATLAB exited in error!----------"69 #cat matlab.log70 #echo "-----------End of matlab.log-----------"67 if [[ ${matlabExitCode} -ne 0 || ${matlabExitedInError} -ne 0 ]]; then 68 echo "----------MATLAB exited in error!----------" 69 cat matlab.log 70 echo "-----------End of matlab.log-----------" 71 71 72 ## Clean up execution directory73 #rm -rf ${ISSM_DIR}/execution/*72 # Clean up execution directory 73 rm -rf ${ISSM_DIR}/execution/* 74 74 75 #exit 176 #fi75 exit 1 76 fi 77 77 78 # #Check that all MATLAB tests passed79 #numMatlabTestsFailed=`cat matlab.log | grep -c -e "FAILED|ERROR"`78 # Check that all MATLAB tests passed 79 numMatlabTestsFailed=`cat matlab.log | grep -c -e "FAILED|ERROR"` 80 80 81 #if [[ ${numMatlabTestsFailed} -ne 0 ]]; then82 #echo "One or more MATLAB tests FAILED"83 #exit 1;84 #else85 #echo "All MATLAB tests PASSED"86 #fi81 if [[ ${numMatlabTestsFailed} -ne 0 ]]; then 82 echo "One or more MATLAB tests FAILED" 83 exit 1; 84 else 85 echo "All MATLAB tests PASSED" 86 fi 87 87 88 # #Check that Python tests run89 #echo "Running Python tests"88 # Check that Python tests run 89 echo "Running Python tests" 90 90 91 #export PATH="${PATH}:${ISSM_DIR}/bin"92 #export PYTHONPATH="${ISSM_DIR}/src/m/dev"93 #export PYTHONSTARTUP="${PYTHONPATH}/devpath.py"94 #export PYTHONUNBUFFERED=1 # We don't want Python to buffer output, otherwise issm.exe output is not captured91 export PATH="${PATH}:${ISSM_DIR}/bin" 92 export PYTHONPATH="${ISSM_DIR}/src/m/dev" 93 export PYTHONSTARTUP="${PYTHONPATH}/devpath.py" 94 export PYTHONUNBUFFERED=1 # We don't want Python to buffer output, otherwise issm.exe output is not captured 95 95 96 #rm python.log 2> /dev/null97 #./runme.py ${PYTHON_NROPTIONS} &> python.log 2>&196 rm python.log 2> /dev/null 97 ./runme.py ${PYTHON_NROPTIONS} &> python.log 2>&1 98 98 99 # #Check that Python did not exit in error100 #pythonExitCode=`echo $?`101 #pythonExitedInError=`grep -E "Error|Traceback|bad interpreter" python.log | wc -l`99 # Check that Python did not exit in error 100 pythonExitCode=`echo $?` 101 pythonExitedInError=`grep -E "Error|Traceback|bad interpreter" python.log | wc -l` 102 102 103 #if [[ ${pythonExitCode} -ne 0 || ${pythonExitedInError} -ne 0 ]]; then104 #echo "----------Python exited in error!----------"105 #cat python.log106 #echo "-----------End of python.log-----------"103 if [[ ${pythonExitCode} -ne 0 || ${pythonExitedInError} -ne 0 ]]; then 104 echo "----------Python exited in error!----------" 105 cat python.log 106 echo "-----------End of python.log-----------" 107 107 108 ## Clean up execution directory109 #rm -rf ${ISSM_DIR}/execution/*108 # Clean up execution directory 109 rm -rf ${ISSM_DIR}/execution/* 110 110 111 #exit 1112 #fi111 exit 1 112 fi 113 113 114 # #Check that all Python tests passed115 #numPythonTestsFailed=`cat python.log | grep -c -e "FAILED|ERROR"`114 # Check that all Python tests passed 115 numPythonTestsFailed=`cat python.log | grep -c -e "FAILED|ERROR"` 116 116 117 #if [[ ${numPythonTestsFailed} -ne 0 ]]; then118 #echo "One or more Python tests FAILED"119 #exit 1120 #else121 #echo "All Python tests PASSED"122 #fi117 if [[ ${numPythonTestsFailed} -ne 0 ]]; then 118 echo "One or more Python tests FAILED" 119 exit 1 120 else 121 echo "All Python tests PASSED" 122 fi 123 123 124 124 # Create tarball … … 144 144 echo "FAILED: Manually check connection" 145 145 exit 1 146 else147 echo "SUCCESS"148 146 fi -
issm/trunk-jpl/packagers/linux/package-issm-linux-binaries.sh
r24695 r24703 71 71 if [[ ${numMatlabTestsFailed} -ne 0 ]]; then 72 72 echo "One or more MATLAB tests FAILED" 73 exit 1 ;73 exit 1 74 74 else 75 75 echo "All MATLAB tests PASSED" … … 90 90 ls -lah ${ISSM_DIR}/${TARBALL} 91 91 92 echo "Shipping binaries to website" 93 94 # We're using public key authentication method to upload the tarball The 95 # following lines check to see if the SSH Agent is running. If not, then it is 96 # started and relevant information is forwarded to a script. 97 pgrep "ssh-agent" > /dev/null 98 if [ $? -ne 0 ]; then 99 echo "SSH Agent is not running. Starting it..." 100 ssh-agent > ~/.ssh/agent.sh 101 else 102 echo "SSH Agent is running..." 103 fi 104 105 source ~/.ssh/agent.sh 106 ssh-add ~/.ssh/debian_linux-vm_to_ross 107 108 scp ${TARBALL} ross.ics.uci.edu:/var/www/html/${TARBALL} 92 echo "Transferring binaries to ISSM Web site" 93 scp -i ~/.ssh/debian_linux-vm_to_ross ${TARBALL} jenkins@ross.ics.uci.edu:/var/www/html/${TARBALL} 109 94 110 95 if [ $? -ne 0 ]; then 111 echo "The upload failed." 112 echo "Perhaps the SSH Agent was started by some other means." 113 echo "Try killing the agent and running again." 96 echo "FAILED: Manually check connection" 97 exit 1 114 98 fi -
issm/trunk-jpl/packagers/mac/package-issm-mac-binaries-with_dakota.sh
r24700 r24703 42 42 fi 43 43 44 # #Run tests45 #echo "Running tests"46 #cd ${ISSM_DIR}/test/NightlyRun44 # Run tests 45 echo "Running tests" 46 cd ${ISSM_DIR}/test/NightlyRun 47 47 48 # #Check that MATLAB tests run49 #echo "Running MATLAB tests"48 # Check that MATLAB tests run 49 echo "Running MATLAB tests" 50 50 51 #rm matlab.log 2> /dev/null51 rm matlab.log 2> /dev/null 52 52 53 # #Run MATLAB tests redirecting output to logfile and suppressing output to console54 #${MATLAB_PATH}/bin/matlab -nojvm -nosplash -r "try, addpath ${ISSM_DIR}/bin ${ISSM_DIR}/lib; runme(${MATLAB_NROPTIONS}); exit; catch me,fprintf('%s',getReport(me)); exit; end" -logfile matlab.log &> /dev/null53 # Run MATLAB tests redirecting output to logfile and suppressing output to console 54 ${MATLAB_PATH}/bin/matlab -nojvm -nosplash -r "try, addpath ${ISSM_DIR}/bin ${ISSM_DIR}/lib; runme(${MATLAB_NROPTIONS}); exit; catch me,fprintf('%s',getReport(me)); exit; end" -logfile matlab.log &> /dev/null 55 55 56 # #Check that MATLAB did not exit in error57 #matlabExitCode=`echo $?`58 #matlabExitedInError=`grep -E "Activation cannot proceed|license" matlab.log | wc -l`56 # Check that MATLAB did not exit in error 57 matlabExitCode=`echo $?` 58 matlabExitedInError=`grep -E "Activation cannot proceed|license" matlab.log | wc -l` 59 59 60 #if [[ ${matlabExitCode} -ne 0 || ${matlabExitedInError} -ne 0 ]]; then61 #echo "----------MATLAB exited in error!----------"62 #cat matlab.log63 #echo "-----------End of matlab.log-----------"60 if [[ ${matlabExitCode} -ne 0 || ${matlabExitedInError} -ne 0 ]]; then 61 echo "----------MATLAB exited in error!----------" 62 cat matlab.log 63 echo "-----------End of matlab.log-----------" 64 64 65 ## Clean up execution directory66 #rm -rf ${ISSM_DIR}/execution/*65 # Clean up execution directory 66 rm -rf ${ISSM_DIR}/execution/* 67 67 68 #exit 169 #fi68 exit 1 69 fi 70 70 71 # #Check that all MATLAB tests passed72 #numMatlabTestsFailed=`cat matlab.log | grep -c -e "FAILED|ERROR"`71 # Check that all MATLAB tests passed 72 numMatlabTestsFailed=`cat matlab.log | grep -c -e "FAILED|ERROR"` 73 73 74 #if [[ ${numMatlabTestsFailed} -ne 0 ]]; then75 #echo "One or more MATLAB tests FAILED"76 #exit 1;77 #else78 #echo "All MATLAB tests PASSED"79 #fi74 if [[ ${numMatlabTestsFailed} -ne 0 ]]; then 75 echo "One or more MATLAB tests FAILED" 76 exit 1; 77 else 78 echo "All MATLAB tests PASSED" 79 fi 80 80 81 # #Check that Python tests run82 #echo "Running Python tests"81 # Check that Python tests run 82 echo "Running Python tests" 83 83 84 #export PATH="${PATH}:${ISSM_DIR}/bin"85 #export PYTHONPATH="${ISSM_DIR}/src/m/dev"86 #export PYTHONSTARTUP="${PYTHONPATH}/devpath.py"87 #export PYTHONUNBUFFERED=1 # We don't want Python to buffer output, otherwise issm.exe output is not captured84 export PATH="${PATH}:${ISSM_DIR}/bin" 85 export PYTHONPATH="${ISSM_DIR}/src/m/dev" 86 export PYTHONSTARTUP="${PYTHONPATH}/devpath.py" 87 export PYTHONUNBUFFERED=1 # We don't want Python to buffer output, otherwise issm.exe output is not captured 88 88 89 #rm python.log 2> /dev/null90 #./runme.py ${PYTHON_NROPTIONS} &> python.log 2>&189 rm python.log 2> /dev/null 90 ./runme.py ${PYTHON_NROPTIONS} &> python.log 2>&1 91 91 92 # #Check that Python did not exit in error93 #pythonExitCode=`echo $?`94 #pythonExitedInError=`grep -E "Error|Traceback|bad interpreter" python.log | wc -l`92 # Check that Python did not exit in error 93 pythonExitCode=`echo $?` 94 pythonExitedInError=`grep -E "Error|Traceback|bad interpreter" python.log | wc -l` 95 95 96 #if [[ ${pythonExitCode} -ne 0 || ${pythonExitedInError} -ne 0 ]]; then97 #echo "----------Python exited in error!----------"98 #cat python.log99 #echo "-----------End of python.log-----------"96 if [[ ${pythonExitCode} -ne 0 || ${pythonExitedInError} -ne 0 ]]; then 97 echo "----------Python exited in error!----------" 98 cat python.log 99 echo "-----------End of python.log-----------" 100 100 101 ## Clean up execution directory102 #rm -rf ${ISSM_DIR}/execution/*101 # Clean up execution directory 102 rm -rf ${ISSM_DIR}/execution/* 103 103 104 #exit 1105 #fi104 exit 1 105 fi 106 106 107 # #Check that all Python tests passed108 #numPythonTestsFailed=`cat python.log | grep -c -e "FAILED|ERROR"`107 # Check that all Python tests passed 108 numPythonTestsFailed=`cat python.log | grep -c -e "FAILED|ERROR"` 109 109 110 #if [[ ${numPythonTestsFailed} -ne 0 ]]; then111 #echo "One or more Python tests FAILED"112 #exit 1113 #else114 #echo "All Python tests PASSED"115 #fi110 if [[ ${numPythonTestsFailed} -ne 0 ]]; then 111 echo "One or more Python tests FAILED" 112 exit 1 113 else 114 echo "All Python tests PASSED" 115 fi 116 116 117 117 # Create tarball … … 137 137 echo "FAILED: Manually check connection" 138 138 exit 1 139 else140 echo "SUCCESS"141 139 fi -
issm/trunk-jpl/packagers/mac/package-issm-mac-binaries.sh
r24696 r24703 66 66 if [[ ${numMatlabTestsFailed} -ne 0 ]]; then 67 67 echo "One or more MATLAB tests FAILED" 68 exit 1 ;68 exit 1 69 69 else 70 70 echo "All MATLAB tests PASSED" … … 85 85 ls -lah ${ISSM_DIR}/${TARBALL} 86 86 87 echo "Shipping binaries to website" 88 89 # We're using public key authentication method to upload the tarball The 90 # following lines check to see if the SSH Agent is running. If not, then it is 91 # started and relevant information is forwarded to a script. 92 pgrep "ssh-agent" > /dev/null 93 if [ $? -ne 0 ]; then 94 echo "SSH Agent is not running. Starting it..." 95 ssh-agent > ~/.ssh/agent.sh 96 else 97 echo "SSH Agent is running..." 98 fi 99 100 source ~/.ssh/agent.sh 101 ssh-add ~/.ssh/pine_island_to_ross 102 103 scp ${TARBALL} ross.ics.uci.edu:/var/www/html/${TARBALL} 87 echo "Transferring binaries to ISSM Web site" 88 scp -i ~/.ssh/pine_island_to_ross ${TARBALL} jenkins@ross.ics.uci.edu:/var/www/html/${TARBALL} 104 89 105 90 if [ $? -ne 0 ]; then 106 echo "The upload failed." 107 echo "Perhaps the SSH Agent was started by some other means." 108 echo "Try killing the agent and running again." 91 echo "FAILED: Manually check connection" 92 exit 1 109 93 fi
Note:
See TracChangeset
for help on using the changeset viewer.