1aba5f4cfSVladimir Kotal#!/bin/bash 2aba5f4cfSVladimir Kotal 3aba5f4cfSVladimir Kotalif [[ "$TRAVIS_OS_NAME" == "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 33519a8457SVladimir Kotal sudo ./dev/install-python-packages.sh 34519a8457SVladimir Kotal if [[ $? != 0 ]]; then 35519a8457SVladimir Kotal echo "cannot install Python packages" 36519a8457SVladimir Kotal exit 1 37519a8457SVladimir Kotal fi 38aba5f4cfSVladimir Kotalelif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then 3961569491SLubos Kosco# brew update 40*76041b3fSLubos Kosco export HOMEBREW_NO_AUTO_UPDATE=1 41519a8457SVladimir Kotal 4289259090SVladimir Kotal brew install cvs libgit2 jq 43519a8457SVladimir Kotal if [[ $? != 0 ]]; then 44519a8457SVladimir Kotal echo "cannot install extra packages" 45519a8457SVladimir Kotal exit 1 46519a8457SVladimir Kotal fi 47519a8457SVladimir Kotal 48aba5f4cfSVladimir Kotal brew upgrade python 49519a8457SVladimir Kotal 50b4571310SVladimir Kotal ./dev/install-python-packages.sh 51519a8457SVladimir Kotal if [[ $? != 0 ]]; then 52519a8457SVladimir Kotal echo "cannot install Python packages" 53519a8457SVladimir Kotal exit 1 54519a8457SVladimir Kotal fi 55aba5f4cfSVladimir Kotalfi 562a63f72dSVladimir Kotal 572a63f72dSVladimir Kotalsudo ./dev/install-universal_ctags.sh 58171dfcf1SVladimir Kotalif [[ $? != 0 ]]; then 59171dfcf1SVladimir Kotal echo "cannot install Universal ctags" 60171dfcf1SVladimir Kotal exit 1 61171dfcf1SVladimir Kotalfi 62193b2204SVladimir Kotal 63193b2204SVladimir Kotal# for API blueprint verification 64193b2204SVladimir Kotalnpm install drafter 65