xref: /OpenGrok/dev/before_install (revision 519a845721e9d685173eec6d15950f41dc07f3db)
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
16*519a8457SVladimir Kotal	# Bitkeeper install failure is not critical, so exit code is not checked.
178182cfb4SVladimir Kotal	sudo ./dev/install-bitkeeper.sh
18*519a8457SVladimir Kotal
19*519a8457SVladimir Kotal	sudo ./dev/install-python-packages.sh
20*519a8457SVladimir Kotal	if [[ $? != 0 ]]; then
21*519a8457SVladimir Kotal		echo "cannot install Python packages"
22*519a8457SVladimir Kotal		exit 1
23*519a8457SVladimir Kotal	fi
24aba5f4cfSVladimir Kotalelif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
25aba5f4cfSVladimir Kotal	brew update
26*519a8457SVladimir Kotal
27193b2204SVladimir Kotal	brew install ctags cvs node
28*519a8457SVladimir Kotal	if [[ $? != 0 ]]; then
29*519a8457SVladimir Kotal		echo "cannot install extra packages"
30*519a8457SVladimir Kotal		exit 1
31*519a8457SVladimir Kotal	fi
32*519a8457SVladimir Kotal
33aba5f4cfSVladimir Kotal	brew upgrade python
34*519a8457SVladimir Kotal
35b4571310SVladimir Kotal	./dev/install-python-packages.sh
36*519a8457SVladimir Kotal	if [[ $? != 0 ]]; then
37*519a8457SVladimir Kotal		echo "cannot install Python packages"
38*519a8457SVladimir Kotal		exit 1
39*519a8457SVladimir Kotal	fi
40aba5f4cfSVladimir Kotalfi
412a63f72dSVladimir Kotal
422a63f72dSVladimir Kotalsudo ./dev/install-universal_ctags.sh
43193b2204SVladimir Kotal
44193b2204SVladimir Kotal# for API blueprint verification
45193b2204SVladimir Kotalnpm install drafter
46