Changeset 23385
- Timestamp:
- 10/04/18 17:11:03 (6 years ago)
- Location:
- issm/trunk
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/externalpackages/gmsh/install-win64-precompiled.sh
r23364 r23385 3 3 4 4 # Set gmsh version 5 GMSH_VER="3.0.5"5 VER="3.0.5" 6 6 7 7 # Set tarball name 8 GMSH_TARBALL_NAME="gmsh-${GMSH_VER}-win64-precompiled" 8 TARBALL_NAME="gmsh-${VER}-win64-precompiled" 9 TARBALL=${TARBALL_NAME}.tar.gz 9 10 10 11 # Clean up from previous installation 11 rm -f $GMSH_TARBALL_NAME.tar.gz 12 rm -rf install src 12 rm -rf install 13 13 14 14 # Download Windows 64-bit precompiled gmsh from ISSM server 15 $ISSM_DIR/scripts/DownloadExternalPackage.py "http://issm.jpl.nasa.gov/files/externalpackages/${ GMSH_TARBALL_NAME}.tar.gz" "${GMSH_TARBALL_NAME}.tar.gz"15 $ISSM_DIR/scripts/DownloadExternalPackage.py "http://issm.jpl.nasa.gov/files/externalpackages/${TARBALL}" "${TARBALL}" 16 16 17 17 # Untar gmsh 18 tar -xvzf $ GMSH_TARBALL_NAME.tar.gz18 tar -xvzf $TARBALL 19 19 20 # Copy gmsh to path expected by packager 21 mkdir install 22 cp gmsh.exe install 23 rm gmsh.exe 20 # Rename untarred dir 21 mv $TARBALL_NAME install 22 23 # Clean up 24 rm -f $TARBALL -
issm/trunk/jenkins/windows_static
r23364 r23385 9 9 #ISSM CONFIGURATION 10 10 ISSM_CONFIG='--prefix=$ISSM_DIR \ 11 --with-vendor=MSVC-Win64 \12 --with-cxxoptflags='-fp:strict' \13 11 --disable-static \ 12 --enable-standalone-executables \ 14 13 --enable-standalone-libraries \ 15 --with-fortran=no \ 14 --with-matlab-dir=$MATLAB_PATH \ 15 --with-vendor=MSVC-Win64 \ 16 --with-fortran=no \ 16 17 --without-GiaIvins \ 17 18 --without-Love \ 18 19 --without-kriging \ 19 20 --without-kml \ 20 --with-matlab-dir=$MATLAB_PATH \ 21 --with-triangle-dir="$ISSM_DIR/externalpackages/triangle/install" \ 22 --with-petsc-dir="$ISSM_DIR/externalpackages/petsc/install" \ 21 --with-petsc-dir=$ISSM_DIR/externalpackages/petsc/install \ 22 --with-blas-lapack-dir=$ISSM_DIR/externalpackages/petsc/install/lib \ 23 --with-mpi-libdir=$ISSM_DIR/externalpackages/petsc/install/lib \ 24 --with-mpi-libflags="-Wl,libpetsc.lib" \ 23 25 --with-metis-dir=$ISSM_DIR/externalpackages/metis/install \ 24 --with-blas-lapack-dir=$ISSM_DIR/externalpackages/petsc/install/lib/ \ 25 --with-mpi-libdir="$ISSM_DIR/externalpackages/petsc/install/lib" \ 26 --with-mpi-libflags="-Wl,libpetsc.lib" \ 26 --with-triangle-dir=$ISSM_DIR/externalpackages/triangle/install \ 27 --with-math77-dir=$ISSM_DIR/externalpackages/math77/install \ 27 28 --with-mpi-include="$ISSM_DIR/externalpackages/petsc/install/include/petsc/mpiuni" \ 28 --enable-development \ 29 --enable-debugging ' 29 --with-cxxoptflags="-fp:strict"' 30 30 31 31 #PYTHON and MATLAB testing … … 39 39 #List of external pakages to be installed and their installation scripts 40 40 EXTERNALPACKAGES="autotools install-win.sh 41 petsc install-3.6-win10.sh 42 metis install-4.0-win10.sh 43 triangle install-win10.sh 44 gmsh install-win64-precompiled.sh 45 shell2junit install.sh" 41 cmake install.sh 42 petsc install-3.6-win10.sh 43 metis install-4.0-win10.sh 44 triangle install-win10.sh 45 math77 install.sh 46 gmt install-win64-precompiled.sh 47 gmsh install-win64-precompiled.sh 48 shell2junit install.sh" 46 49 47 50 #-----------------# -
issm/trunk/packagers/win10/package64.sh
r23364 r23385 1 1 #!/bin/bash 2 2 3 TARBALL_NAME='ISSM-Win10-64' 4 TARBALL=$TARBALL_NAME.tar.gz 3 5 MATLAB_PATH="/cygdrive/c/Programs/MATLAB/R2015a" 4 6 … … 6 8 source $ISSM_DIR/externalpackages/windows/windows_environment.sh 7 9 10 # Clean up from previous packaging 11 echo "Cleaning up existing assets" 12 cd $ISSM_DIR 13 rm -rf trunk 14 mkdir trunk 15 16 # Add/modify required binaries 17 cd $ISSM_DIR/bin 18 8 19 echo "Making generic_static.m work like generic.m" 9 cd $ISSM_DIR/bin10 20 cat generic_static.m | sed -e "s/generic_static/generic/g" > generic.m 11 21 12 22 echo "Copying scripts from /src to /bin" 13 echo "----------------------------------"14 23 rm $ISSM_DIR/bin/*.m 15 24 find $ISSM_DIR/src/m -name '*.m' | xargs cp -t $ISSM_DIR/bin 16 ls $ISSM_DIR/bin17 echo "----------------------------------"18 25 19 26 echo "Copying gmsh to bin" … … 24 31 fi 25 32 33 # Copy gmt to trunk 34 # NOTE: The following assumes the precompiled version of gmt 35 echo "Moving gmt to externalpackages" 36 if [ -f $ISSM_DIR/externalpackages/gmt/install/bin/gmt ]; then 37 mkdir $ISSM_DIR/trunk/externalpackages 38 mkdir $ISSM_DIR/trunk/externalpackages/gmt 39 cp -a $ISSM_DIR/externalpackages/gmt/install/. $ISSM_DIR/trunk/externalpackages/gmt 40 else 41 echo "gmt not found" 42 fi 43 26 44 # Check that test 101 runs 27 45 cd $ISSM_DIR/test/NightlyRun 28 46 rm matlab.log 29 30 47 $MATLAB_PATH/bin/matlab -nodisplay -nosplash -r "try, addpath $ISSM_DIR_WIN/bin $ISSM_DIR_WIN/lib; runme('id',101); exit; catch me,fprintf('%s',getReport(me)); exit; end" -logfile matlab.log 31 48 … … 47 64 48 65 # Create tarball 49 TARBALL_NAME=ISSM-Win10-64.tar.gz 66 echo "Creating tarball: ${TARBALL_NAME}" 67 cd $ISSM_DIR 68 rm -f $TARBALL 69 cp -rf bin lib test examples scripts trunk/ 70 71 # Create link to gmt from bin 72 # NOTE: It is important that we are in the destination dir when sym linking so that the path is relative 73 if [ -f $ISSM_DIR/trunk/externalpackages/gmt/bin/gmt ]; then 74 cd $ISSM_DIR/trunk/bin 75 ln -s ../externalpackages/gmt/bin/gmt.exe ./gmt 76 fi 50 77 51 78 cd $ISSM_DIR 52 rm $TARBALL_NAME 53 rm -rf trunk 54 mkdir trunk 55 56 echo "Creating tarball: ${TARBALL_NAME}" 57 cp -rf bin lib test examples scripts trunk/ 58 tar -czf $TARBALL_NAME trunk 59 ls -lah $TARBALL_NAME 79 tar -czf $TARBALL trunk 80 ls -lah $TARBALL 60 81 61 82 # Ship binaries to website … … 77 98 ssh-add ~/.ssh/win_bins-geidi_prime_to_ross 78 99 79 scp $TARBALL _NAME jenkins@ross.ics.uci.edu:/var/www/html/$TARBALL_NAME100 scp $TARBALL jenkins@ross.ics.uci.edu:/var/www/html/$TARBALL 80 101 81 102 if [ $? -ne 0 ]; then
Note:
See TracChangeset
for help on using the changeset viewer.