feat(CI/MacOS): use acore.sh to install deps (#4003)

This commit is contained in:
Patrick Lewis
2020-12-22 09:55:58 -08:00
committed by GitHub
parent 46d6a4690b
commit 0067d45ba4
5 changed files with 24 additions and 15 deletions

View File

@@ -1,5 +1,14 @@
unamestr=$(uname)
if [[ "$unamestr" == 'Darwin' ]]; then
if ! command -v brew &>/dev/null ; then
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
if ! [ "${BASH_VERSINFO}" -ge 4 ]; then
brew install bash
fi
if ! command -v greadlink &>/dev/null ; then
brew install coreutils
fi
AC_PATH_ROOT=$(greadlink -f "$AC_PATH_APPS/../")
else
AC_PATH_ROOT=$(readlink -f "$AC_PATH_APPS/../")
@@ -10,4 +19,3 @@ AC_PATH_CONF="$AC_PATH_ROOT/conf"
AC_PATH_MODULES="$AC_PATH_ROOT/modules"
AC_PATH_DEPS="$AC_PATH_ROOT/deps"