forked from andreyfedoseev/django-static-precompiler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
provision.sh
50 lines (36 loc) · 1.12 KB
/
provision.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
#!/bin/bash
############
# packages #
############
sudo aptitude update
sudo aptitude install -y virtualenvwrapper python-dev ruby-dev node npm sqlite3
sudo gem install sass -v 3.4.9
sudo gem install compass -v 1.0.1
# Fix path to nodejs executable
if [ ! -e /usr/local/bin/node ]; then
sudo ln -s /usr/bin/nodejs /usr/local/bin/node
fi
sudo npm install -g [email protected]
sudo npm install -g [email protected]
sudo npm install -g [email protected]
sudo npm install -g [email protected]
sudo npm install -g [email protected]
sudo npm install -g [email protected]
##############
# virtualenv #
##############
source /usr/share/virtualenvwrapper/virtualenvwrapper.sh
# Create virtualenv
if [ ! -e ~/.virtualenvs/staticprecompiler ]; then
mkvirtualenv staticprecompiler
fi
echo "cd /vagrant; export DJANGO_SETTINGS_MODULE=static_precompiler.tests.django_settings" > ~/.virtualenvs/staticprecompiler/bin/postactivate
workon staticprecompiler
if [ ! -e ~/.pip ]; then
mkdir ~/.pip
fi
echo -e "[global]\ndownload_cache = ~/.cache/pip" > ~/.pip/pip.conf
pip install django==1.7.4
pip install watchdog
pip install pytest-cov
pip install -e .