forked from web-animations/web-animations-js-legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis-setup.sh
executable file
·56 lines (47 loc) · 1.57 KB
/
.travis-setup.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
53
54
55
56
#! /bin/bash
set -x
# Make sure /dev/shm has correct permissions.
ls -l /dev/shm
sudo chmod 1777 /dev/shm
ls -l /dev/shm
sudo apt-get update --fix-missing
# Install python-imaging from the environment rather then build it.
# If the below fails, pip will build it via the requirements.txt
sudo apt-get install python-imaging
VIRTUAL_ENV_site_packages=$(echo $VIRTUAL_ENV/lib/*/site-packages)
VIRTUAL_ENV_python_version=$(echo $VIRTUAL_ENV_site_packages | sed -e's@.*/\(.*\)/site-packages@\1@')
ln -s /usr/lib/$VIRTUAL_ENV_python_version/dist-packages/PIL.pth $VIRTUAL_ENV_site_packages/PIL.pth
ln -s /usr/lib/$VIRTUAL_ENV_python_version/dist-packages/PIL $VIRTUAL_ENV_site_packages/PIL
export VERSION=$(echo $BROWSER | sed -e's/[^-]*-//')
export BROWSER=$(echo $BROWSER | sed -e's/-.*//')
echo BROWSER=$BROWSER
echo VERSION=$VERSION
case $BROWSER in
Chrome)
echo "Getting $VERSION of $BROWSER"
export CHROME=google-chrome-${VERSION}_current_amd64.deb
wget https://dl.google.com/linux/direct/$CHROME
sudo dpkg --install $CHROME || sudo apt-get -f install
which google-chrome
ls -l `which google-chrome`
google-chrome --version
;;
Firefox)
sudo rm -f /usr/local/bin/firefox
case $VERSION in
beta)
yes "\n" | sudo add-apt-repository -y ppa:mozillateam/firefox-next
;;
aurora)
yes "\n" | sudo add-apt-repository -y ppa:ubuntu-mozilla-daily/firefox-aurora
;;
esac
sudo apt-get update --fix-missing
sudo apt-get install firefox
which firefox
ls -l `which firefox`
firefox --version
;;
esac
R=tools/python/requirements.txt
pip install -r $R --use-mirrors || pip install -r $R