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 10b4571310SVladimir Kotal sudo apt-get install -qq cvs git mercurial cssc bzr subversion monotone rcs rcs-blame python3 python3.4-venv python3-pip nodejs 11df8ae9f1SVladimir Kotal if [[ $? != 0 ]]; then 12df8ae9f1SVladimir Kotal echo "cannot install extra packages" 13df8ae9f1SVladimir Kotal exit 1 14df8ae9f1SVladimir Kotal fi 15b4571310SVladimir Kotal 16519a8457SVladimir Kotal # Bitkeeper install failure is not critical, so exit code is not checked. 178182cfb4SVladimir Kotal sudo ./dev/install-bitkeeper.sh 18519a8457SVladimir Kotal 19519a8457SVladimir Kotal sudo ./dev/install-python-packages.sh 20519a8457SVladimir Kotal if [[ $? != 0 ]]; then 21519a8457SVladimir Kotal echo "cannot install Python packages" 22519a8457SVladimir Kotal exit 1 23519a8457SVladimir Kotal fi 24aba5f4cfSVladimir Kotalelif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then 25aba5f4cfSVladimir Kotal brew update 26519a8457SVladimir Kotal 27193b2204SVladimir Kotal brew install ctags cvs node 28519a8457SVladimir Kotal if [[ $? != 0 ]]; then 29519a8457SVladimir Kotal echo "cannot install extra packages" 30519a8457SVladimir Kotal exit 1 31519a8457SVladimir Kotal fi 32519a8457SVladimir Kotal 33aba5f4cfSVladimir Kotal brew upgrade python 34519a8457SVladimir Kotal 35b4571310SVladimir Kotal ./dev/install-python-packages.sh 36519a8457SVladimir Kotal if [[ $? != 0 ]]; then 37519a8457SVladimir Kotal echo "cannot install Python packages" 38519a8457SVladimir Kotal exit 1 39519a8457SVladimir Kotal fi 40aba5f4cfSVladimir Kotalfi 412a63f72dSVladimir Kotal 422a63f72dSVladimir Kotalsudo ./dev/install-universal_ctags.sh 43*171dfcf1SVladimir Kotalif [[ $? != 0 ]]; then 44*171dfcf1SVladimir Kotal echo "cannot install Universal ctags" 45*171dfcf1SVladimir Kotal exit 1 46*171dfcf1SVladimir Kotalfi 47193b2204SVladimir Kotal 48193b2204SVladimir Kotal# for API blueprint verification 49193b2204SVladimir Kotalnpm install drafter 50