#!/bin/bash if [[ "$RUNNER_OS" == "Linux" ]]; then sudo apt-get update -qq if [[ $? != 0 ]]; then echo "cannot update" exit 1 fi sudo apt-get install -qq \ cvs \ mercurial \ cssc \ bzr \ subversion \ rcs \ rcs-blame \ python3 \ python3-venv \ python3-pip \ nodejs \ jq if [[ $? != 0 ]]; then echo "cannot install extra packages" exit 1 fi # Bitkeeper install failure is not critical, so exit code is not checked. sudo ./dev/install-bitkeeper.sh sudo -H ./dev/install-python-packages.sh if [[ $? != 0 ]]; then echo "cannot install Python packages" exit 1 fi sudo ./dev/install-universal_ctags.sh if [[ $? != 0 ]]; then echo "cannot install Universal ctags" exit 1 fi elif [[ "$RUNNER_OS" == "macOS" ]]; then export HOMEBREW_NO_AUTO_UPDATE=1 brew install cvs libgit2 jq autoconf automake mercurial if [[ $? != 0 ]]; then echo "cannot install extra packages" exit 1 fi brew install python3 brew upgrade python ./dev/install-python-packages.sh if [[ $? != 0 ]]; then echo "cannot install Python packages" exit 1 fi sudo ./dev/install-universal_ctags.sh if [[ $? != 0 ]]; then echo "cannot install Universal ctags" exit 1 fi fi