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 39*61569491SLubos Kosco# brew update 40519a8457SVladimir Kotal 4189259090SVladimir Kotal brew install cvs libgit2 jq 42519a8457SVladimir Kotal if [[ $? != 0 ]]; then 43519a8457SVladimir Kotal echo "cannot install extra packages" 44519a8457SVladimir Kotal exit 1 45519a8457SVladimir Kotal fi 46519a8457SVladimir Kotal 47aba5f4cfSVladimir Kotal brew upgrade python 48519a8457SVladimir Kotal 49b4571310SVladimir Kotal ./dev/install-python-packages.sh 50519a8457SVladimir Kotal if [[ $? != 0 ]]; then 51519a8457SVladimir Kotal echo "cannot install Python packages" 52519a8457SVladimir Kotal exit 1 53519a8457SVladimir Kotal fi 54aba5f4cfSVladimir Kotalfi 552a63f72dSVladimir Kotal 562a63f72dSVladimir Kotalsudo ./dev/install-universal_ctags.sh 57171dfcf1SVladimir Kotalif [[ $? != 0 ]]; then 58171dfcf1SVladimir Kotal echo "cannot install Universal ctags" 59171dfcf1SVladimir Kotal exit 1 60171dfcf1SVladimir Kotalfi 61193b2204SVladimir Kotal 62193b2204SVladimir Kotal# for API blueprint verification 63193b2204SVladimir Kotalnpm install drafter 64