chore: fix macOS dependency issue in AWS machines

This commit is contained in:
Umut
2022-05-02 09:54:21 +02:00
parent ffe26aadcb
commit 30d132ad75
2 changed files with 8 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ PUSH_TO_MAIN_CONF = {"os": PUSH_TO_MAIN_OSES, "python": PUSH_TO_MAIN_PYTHON_VERS
WEEKLY_OSES = {
LINUX: "ubuntu-20.04",
MACOS: "macos-10.15",
MACOS: "macos-11",
}
WEEKLY_PYTHON_VERSIONS = ["3.8", "3.9"]
WEEKLY_CONF = {"os": WEEKLY_OSES, "python": WEEKLY_PYTHON_VERSIONS}

View File

@@ -74,7 +74,13 @@ if [[ "${OS_NAME}" == "Linux" ]]; then
pip install --no-cache-dir poetry"
eval "${SETUP_CMD}"
elif [[ "${OS_NAME}" == "Darwin" ]]; then
brew install curl git graphviz jq make pandoc shellcheck
# Some problems with the git which is preinstalled on AWS virtual machines. Let's unlink it
# but not fail if it is not there, so use 'cat' as a hack to be sure that, even if set -x is
# activated later in this script, the status is still 0 == success
brew unlink git@2.35.1 | cat
brew install git
brew install curl graphviz jq make pandoc shellcheck
python3 -m pip install -U pip
python3 -m pip install poetry