mas/script/bootstrap

28 lines
605 B
Text
Raw Normal View History

#!/bin/bash -eu
#
# script/bootstrap
# mas
#
2021-03-22 00:42:26 +00:00
# Installs development dependencies and builds project dependencies.
#
mas_dir="$(readlink -fn "$(dirname "${BASH_SOURCE:-"${0}"}")/..")"
if ! cd -- "${mas_dir}"; then
printf $'Error: Could not cd into mas directory: %s\n' "${mas_dir}" >&2
exit 1
fi
script/clean
printf $'==> 👢 Bootstrapping (%s)\n' "$(script/version)"
# Install Homebrew tools
rm -f Brewfile.lock.json
brew bundle install --no-upgrade --verbose
2021-04-29 05:56:34 +00:00
# swiftlint is already installed on GitHub Actions runners.
if [[ ! -x "$(command -v swiftlint)" ]]; then
brew install swiftlint
fi