-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from gidden/travis
Travis
- Loading branch information
Showing
7 changed files
with
90 additions
and
23 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,38 @@ | ||
#!/bin/bash | ||
|
||
mkdir build; cd build; | ||
mkdir build | ||
cd build | ||
export LD_LIBRARY_PATH=$PREFIX/lib/ | ||
export CMAKE_LIBRARY_PATH=$PREFIX/lib/ | ||
export PATH=$PREFIX/bin:$PATH | ||
export MACOSX_DEPLOYMENT_TARGET= | ||
|
||
$PREFIX/bin/cyclus --version | ||
if [[ `uname` == 'Linux' ]]; then | ||
|
||
cmake .. -DCMAKE_INSTALL_PREFIX=$PREFIX -DCYCLUS_ROOT_DIR=$PREFIX -DBOOST_ROOT=$PREFIX -DBOOST_LIBRARYDIR=$PREFIX/lib -DBoost_NO_SYSTEM_PATHS=ON -DCMAKE_BUILD_TYPE=Release -DLAPACK_LIBRARIES=$PREFIX/lib/liblapack.so -DBLAS_LIBRARIES=$PREFIX/lib/libblas.so | ||
if [[ `uname` == 'Linux' ]]; then | ||
cmake .. \ | ||
-DCMAKE_INSTALL_PREFIX=$PREFIX \ | ||
-DCYCLUS_ROOT_DIR=$PREFIX \ | ||
-DHDF5_ROOT=$PREFIX \ | ||
-DBOOST_ROOT=$PREFIX \ | ||
-DBOOST_LIBRARYDIR=$PREFIX/lib \ | ||
-DBoost_NO_SYSTEM_PATHS=ON \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DLAPACK_LIBRARIES=$PREFIX/lib/liblapack.so \ | ||
-DBLAS_LIBRARIES=$PREFIX/lib/libblas.so | ||
else | ||
|
||
export DYLD_FALLBACK_LIBRARY_PATH=$PREFIX/lib/cyclus:$PREFIX/lib | ||
cmake .. -DCMAKE_INSTALL_PREFIX=$PREFIX -DCYCLUS_ROOT_DIR=$PREFIX -DCOIN_ROOT_DIR=$PREFIX -DBOOST_ROOT=$PREFIX -DLAPACK_LIBRARIES=$PREFIX/lib/liblapack.dylib -DBLAS_LIBRARIES=$PREFIX/lib/libblas.dylib | ||
export DYLD_FALLBACK_LIBRARY_PATH=$PREFIX/lib/cyclus:$PREFIX/lib | ||
cmake .. \ | ||
-DCMAKE_INSTALL_PREFIX=$PREFIX \ | ||
-DCYCLUS_ROOT_DIR=$PREFIX \ | ||
-DHDF5_ROOT=$PREFIX \ | ||
-DCOIN_ROOT_DIR=$PREFIX \ | ||
-DBOOST_ROOT=$PREFIX \ | ||
-DLAPACK_LIBRARIES=$PREFIX/lib/liblapack.dylib \ | ||
-DBLAS_LIBRARIES=$PREFIX/lib/libblas.dylib | ||
fi | ||
|
||
make | ||
make install | ||
|
||
echo DONE |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
|
||
echo $PREFIX | ||
echo "pre-link.sh, PREFIX: $PREFIX" | ||
|
||
export LD_LIBRARY_PATH=$PREFIX/lib/:$LD_LIBRARY_PATH | ||
export CMAKE_LIBRARY_PATH=$PREFIX/lib/:$CMAKE_LIBRARY_PATH | ||
|
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#/bin/bash | ||
|
||
echo "post-link.sh, PREFIX: $PREFIX" | ||
|
||
mv $PREFIX/bin/cyclus $PREFIX/bin/cyclus_base | ||
echo " | ||
|