-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.sh
53 lines (40 loc) · 1.2 KB
/
script.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#install script for node, meteor, mrt
sudo apt-get update
sudo apt-get -y -q install python-software-properties git software-properties-common python-pip python-dev make curl
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install python-software-properties python g++ make nodejs
curl https://install.meteor.com | /bin/sh
sudo -H npm install -g meteorite
#install lakia and its dependecies for testing
#install mongodb and libfontconfig
sudo apt-get -y install mongodb libfontconfig
#install phantomjs
cd tmp
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2
tar -xvf phantomjs-1.9.7-linux-x86_64.tar.bz2
sudo mv phantomjs-1.9.7-linux-x86_64 /usr/local/share
sudo ln -s /usr/local/share/phantomjs-1.9.7-linux-x86_64/bin/phantomjs /usr/bin/phantomjs
#install laika
sudo npm install -g laika
#install mocha
sudo npm install -g mocha
#install zombie.js
sudo npm install -g zombie
#tests for successful install
#assert function for testing
assert()
{
if hash $1 2>/dev/null; then
echo $1 "installed"
else
echo $1 "not installed"
fi
}
assert node
assert meteor
assert mrt
assert mongod
assert phantomjs
assert laika
assert mocha