1#!/bin/bash 2 3if [[ "$RUNNER_OS" == "Linux" ]]; then 4 sudo apt-get update -qq 5 if [[ $? != 0 ]]; then 6 echo "cannot update" 7 exit 1 8 fi 9 10 sudo apt-get install -qq \ 11 cvs \ 12 mercurial \ 13 cssc \ 14 bzr \ 15 subversion \ 16 rcs \ 17 rcs-blame \ 18 python3 \ 19 python3-venv \ 20 python3-pip \ 21 nodejs \ 22 jq 23 if [[ $? != 0 ]]; then 24 echo "cannot install extra packages" 25 exit 1 26 fi 27 28 # Bitkeeper install failure is not critical, so exit code is not checked. 29 sudo ./dev/install-bitkeeper.sh 30 31 sudo -H ./dev/install-python-packages.sh 32 if [[ $? != 0 ]]; then 33 echo "cannot install Python packages" 34 exit 1 35 fi 36 37 sudo ./dev/install-universal_ctags.sh 38 if [[ $? != 0 ]]; then 39 echo "cannot install Universal ctags" 40 exit 1 41 fi 42 43elif [[ "$RUNNER_OS" == "macOS" ]]; then 44 export HOMEBREW_NO_AUTO_UPDATE=1 45 46 brew install cvs libgit2 jq autoconf automake mercurial 47 if [[ $? != 0 ]]; then 48 echo "cannot install extra packages" 49 exit 1 50 fi 51 52 brew install python3 53 brew upgrade python 54 55 ./dev/install-python-packages.sh 56 if [[ $? != 0 ]]; then 57 echo "cannot install Python packages" 58 exit 1 59 fi 60 61 sudo ./dev/install-universal_ctags.sh 62 if [[ $? != 0 ]]; then 63 echo "cannot install Universal ctags" 64 exit 1 65 fi 66fi 67