Last active
August 29, 2015 13:56
-
-
Save friedmud/9199256 to your computer and use it in GitHub Desktop.
libMesh MooseBuild Recipe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd $LIBMESH_BUILD_AREA | |
export LIBMESH_DIR=$LIBMESH_BUILD_AREA/libmesh/installed | |
export METHODS="opt" | |
export METHOD="opt" | |
cd libmesh | |
git clean -fxd | |
git reset HEAD --hard | |
git co master | |
git co -b test | |
git pull $ssh_url $ref | |
mkdir -p build | |
cd build | |
../configure --with-methods="${METHODS}" --prefix=$LIBMESH_DIR --enable-silent-rules --enable-unique-id --disable-warnings --enable-openmp --enable-default-comm-world | |
make -j 16 | |
return_code=$? | |
if(( $return_code != 0)); then | |
git reset HEAD --hard | |
git co master | |
git branch -D test | |
exit $return_code | |
fi | |
make -j 16 install | |
return_code=$? | |
if(( $return_code != 0)); then | |
git reset HEAD --hard | |
git co master | |
git branch -D test | |
exit $return_code | |
fi | |
make -j 16 check | |
return_code=$? | |
if(( $return_code != 0)); then | |
git reset HEAD --hard | |
git co master | |
git branch -D test | |
exit $return_code | |
fi | |
cd $LIBMESH_BUILD_AREA/moose | |
git clean -fxd | |
git reset HEAD --hard | |
git pull --rebase origin master | |
cd test | |
make -j16 | |
./run_tests -c -j16 | |
return_code=$? | |
cd $LIBMESH_BUILD_AREA/libmesh | |
git reset HEAD --hard | |
git co master | |
git branch -D test | |
exit $return_code |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment