Work around https git issue with travis and BMI repo
@@ -16,11 +16,12 @@ if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
BMI_INSTALLED_VERSION=`cat $PREFIX/bmi_version.txt`;
fi
if [ ! -f "$PREFIX/include/bmi.h" ] || [ "$BMI_INSTALLED_VERSION" != "${BMI_VERSION}" ]; then
- cd $HOME && git clone http://xgitlab.cels.anl.gov/sds/bmi bmi && cd bmi;
+ cd $HOME && wget --no-check-certificate http://xgitlab.cels.anl.gov/sds/bmi/-/archive/${BMI_VERSION}/bmi-${BMI_VERSION}.tar.bz2;
+ tar -xjf bmi-${BMI_VERSION}.tar.bz2;
# if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
# patch -p1 < ${TRAVIS_BUILD_DIR}/Testing/script/bmi_osx.patch
# fi
- ./prepare && ./configure --enable-shared --disable-static --enable-bmi-only --prefix=$PREFIX && make -j2 -s && make install;
+ cd bmi-${BMI_VERSION} && ./prepare && ./configure --enable-shared --disable-static --enable-bmi-only --prefix=$PREFIX && make -j2 -s && make install;
echo "${BMI_VERSION}" > $PREFIX/bmi_version.txt
else
echo "Using cached directory for BMI";
