check if git-lfs installed in travis

This commit is contained in:
liangjg 2018-08-17 16:05:34 -04:00
parent e4de659b12
commit 8a20f3cc0a
3 changed files with 120 additions and 113 deletions

View file

@ -17,6 +17,13 @@ if [[ ! -d $ENDF/neutrons || ! -d $ENDF/photoat || ! -d $ENDF/atomic_relax ]]; t
fi
# Download multipole library
if [[ ! -d $HOME/WMP_Library ]]; then
git lfs clone https://github.com/mit-crpg/WMP_Library.git
if [[ ! -e $HOME/WMP_Library/092235.h5 ]]; then
if [[ $(command -v git-lfs) ]]; then
echo "Downloading WMP Library ..."
git clone https://github.com/mit-crpg/WMP_Library.git wmp_repo
mv wmp_repo/WMP_Library $HOME
else
echo "git lfs not found"
unset OPENMC_MULTIPOLE_LIBRARY
fi
fi