-
Notifications
You must be signed in to change notification settings - Fork 7
/
Brewfile.inc.sh
19 lines (16 loc) · 789 Bytes
/
Brewfile.inc.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env bash
# when not in CI, use dev install
[[ "${CI:-}" = "true" ]] || YP_CI_BREW_INSTALL=${YP_CI_BREW_INSTALL:-dev}
# when in docker-ci, use dev install
[[ ! -f /yplatform.docker-ci ]] || YP_CI_BREW_INSTALL=${YP_CI_BREW_INSTALL:-dev}
source ${YP_DIR}/bootstrap/brew-install-${YP_CI_BREW_INSTALL}.inc.sh
# YP_DOCKER declared in dockerfiles/*/Dockerfile.build.sh
[[ "${YP_DOCKER:-}" != "true" ]] || {
[[ "${YP_CI_BREW_INSTALL}" = "minimal" ]] || { \
# installing perl for performance reasons,
# since it takes a very long time to install via homebrew on Linux
# NOTE: many formulas are optimized to use system's perl on MacOS, but not Linux
[[ "${OS_RELEASE_ID}" != "alpine" ]] || brew_install_one gcc
brew_install_one perl
}
}