ci: check boost version change on OSX

refs: #4060

Change-Id: I70819d428c6285ed4e18d2da9478d2c99333d37a
This commit is contained in:
Ashlesh Gawande committed 2017-04-24 10:31:49 -05:00
1 parent e689dd6d8b
commit 812af97447
1 file changed
+13 -1
+13 -1
View File
@@ -7,7 +7,19 @@ source "$JDIR"/util.sh
pushd /tmp >/dev/null
INSTALLED_VERSION=$((cd ndn-cxx && git rev-parse HEAD) 2>/dev/null || echo NONE)
INSTALLED_VERSION=
if has OSX $NODE_LABELS; then
BOOST=$(brew ls --versions boost)
OLD_BOOST=$(cat boost.txt || :)
if [[ $OLD_BOOST != $BOOST ]]; then
echo "$BOOST" > boost.txt
INSTALLED_VERSION=NONE
fi
fi
if [[ -z $INSTALLED_VERSION ]]; then
INSTALLED_VERSION=$((cd ndn-cxx && git rev-parse HEAD) 2>/dev/null || echo NONE)
fi
sudo rm -Rf ndn-cxx-latest