1aba5f4cfSVladimir Kotal#!/bin/bash 2aba5f4cfSVladimir Kotal 3*d06d067eSVladimir Kotalif [[ "$RUNNER_OS" == "Linux" ]]; then 4aba5f4cfSVladimir Kotal sudo apt-get update -qq 5df8ae9f1SVladimir Kotal if [[ $? != 0 ]]; then 6df8ae9f1SVladimir Kotal echo "cannot update" 7df8ae9f1SVladimir Kotal exit 1 8df8ae9f1SVladimir Kotal fi 9b4571310SVladimir Kotal 10fb84416eSVladimir Kotal sudo apt-get install -qq \ 11fb84416eSVladimir Kotal cvs \ 12fb84416eSVladimir Kotal git \ 13fb84416eSVladimir Kotal mercurial \ 14fb84416eSVladimir Kotal cssc \ 15fb84416eSVladimir Kotal bzr \ 16fb84416eSVladimir Kotal subversion \ 17fb84416eSVladimir Kotal monotone \ 18fb84416eSVladimir Kotal rcs \ 19fb84416eSVladimir Kotal rcs-blame \ 20fb84416eSVladimir Kotal python3 \ 21fb84416eSVladimir Kotal python3-venv \ 22fb84416eSVladimir Kotal python3-pip \ 2389259090SVladimir Kotal nodejs \ 2489259090SVladimir Kotal jq 25df8ae9f1SVladimir Kotal if [[ $? != 0 ]]; then 26df8ae9f1SVladimir Kotal echo "cannot install extra packages" 27df8ae9f1SVladimir Kotal exit 1 28df8ae9f1SVladimir Kotal fi 29b4571310SVladimir Kotal 30519a8457SVladimir Kotal # Bitkeeper install failure is not critical, so exit code is not checked. 318182cfb4SVladimir Kotal sudo ./dev/install-bitkeeper.sh 32519a8457SVladimir Kotal 3343834e8cSVladimir Kotal sudo -H ./dev/install-python-packages.sh 34519a8457SVladimir Kotal if [[ $? != 0 ]]; then 35519a8457SVladimir Kotal echo "cannot install Python packages" 36519a8457SVladimir Kotal exit 1 37519a8457SVladimir Kotal fi 389f2d396bSVladimir Kotal 39*d06d067eSVladimir Kotal sudo ./dev/install-universal_ctags.sh 409f2d396bSVladimir Kotal if [[ $? != 0 ]]; then 419f2d396bSVladimir Kotal echo "cannot install Universal ctags" 429f2d396bSVladimir Kotal exit 1 439f2d396bSVladimir Kotal fi 449f2d396bSVladimir Kotal 45*d06d067eSVladimir Kotalelif [[ "$RUNNER_OS" == "macOS" ]]; then 4676041b3fSLubos Kosco export HOMEBREW_NO_AUTO_UPDATE=1 47519a8457SVladimir Kotal 48565b2f3bSVladimir Kotal brew install cvs libgit2 jq autoconf automake 49519a8457SVladimir Kotal if [[ $? != 0 ]]; then 50519a8457SVladimir Kotal echo "cannot install extra packages" 51519a8457SVladimir Kotal exit 1 52519a8457SVladimir Kotal fi 53519a8457SVladimir Kotal 5488c623c9SLubos Kosco brew install python3 55aba5f4cfSVladimir Kotal brew upgrade python 56519a8457SVladimir Kotal 57b4571310SVladimir Kotal ./dev/install-python-packages.sh 58519a8457SVladimir Kotal if [[ $? != 0 ]]; then 59519a8457SVladimir Kotal echo "cannot install Python packages" 60519a8457SVladimir Kotal exit 1 61519a8457SVladimir Kotal fi 622a63f72dSVladimir Kotal 63*d06d067eSVladimir Kotal sudo ./dev/install-universal_ctags.sh 64171dfcf1SVladimir Kotal if [[ $? != 0 ]]; then 65171dfcf1SVladimir Kotal echo "cannot install Universal ctags" 66171dfcf1SVladimir Kotal exit 1 67171dfcf1SVladimir Kotal fi 689f2d396bSVladimir Kotalfi 69