Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Side by Side Diff: bower_components/web-animations-js/.travis-setup.sh

Issue 786953007: npm_modules: Fork bower_components into Polymer 0.4.0 and 0.5.0 versions (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 #! /bin/bash
2
3 set -x
4 set -e
5
6 # Make sure /dev/shm has correct permissions.
7 ls -l /dev/shm
8 sudo chmod 1777 /dev/shm
9 ls -l /dev/shm
10
11 uname -a
12 cat /etc/lsb-release
13
14 sudo apt-get update --fix-missing
15
16 # Install python-imaging from the environment rather then build it.
17 # If the below fails, pip will build it via the requirements.txt
18 sudo apt-get install python-imaging
19 VIRTUAL_ENV_site_packages=$(echo $VIRTUAL_ENV/lib/*/site-packages)
20 VIRTUAL_ENV_python_version=$(echo $VIRTUAL_ENV_site_packages | sed -e's@.*/\(.*\ )/site-packages@\1@')
21 ln -s /usr/lib/$VIRTUAL_ENV_python_version/dist-packages/PIL.pth $VIRTUAL_ENV_si te_packages/PIL.pth
22 ln -s /usr/lib/$VIRTUAL_ENV_python_version/dist-packages/PIL $VIRTUAL_ENV_site_p ackages/PIL
23
24 export VERSION=$(echo $BROWSER | sed -e's/[^-]*-//')
25 export BROWSER=$(echo $BROWSER | sed -e's/-.*//')
26
27 echo BROWSER=$BROWSER
28 echo VERSION=$VERSION
29
30 sudo ln -sf $(which true) $(which xdg-desktop-menu)
31
32 case $BROWSER in
33 Android)
34 sudo apt-get install -qq --force-yes \
35 libc6:i386 libgcc1:i386 gcc-4.6-base:i386 libstdc++5:i386 \
36 libstdc++6:i386 lib32z1 libreadline6-dev:i386 \
37 libncurses5-dev:i386
38 bash tools/android/setup.sh
39 ;;
40
41 Chrome)
42 echo "Getting $VERSION of $BROWSER"
43 export CHROME=google-chrome-${VERSION}_current_amd64.deb
44 wget https://dl.google.com/linux/direct/$CHROME
45 sudo dpkg --install $CHROME || sudo apt-get -f install
46 which google-chrome
47 ls -l `which google-chrome`
48
49 if [ -f /opt/google/chrome/chrome-sandbox ]; then
50 export CHROME_SANDBOX=/opt/google/chrome/chrome-sandbox
51 else
52 export CHROME_SANDBOX=$(ls /opt/google/chrome*/chrome-sandbox)
53 fi
54
55 # Download a custom chrome-sandbox which works inside OpenVC containers (used on travis).
56 sudo rm -f $CHROME_SANDBOX
57 sudo wget https://googledrive.com/host/0B5VlNZ_Rvdw6NTJoZDBSVy1ZdkE -O $ CHROME_SANDBOX
58 sudo chown root:root $CHROME_SANDBOX; sudo chmod 4755 $CHROME_SANDBOX
59 sudo md5sum $CHROME_SANDBOX
60
61 google-chrome --version
62 ;;
63
64 Firefox)
65 sudo rm -f /usr/local/bin/firefox
66 case $VERSION in
67 beta)
68 yes "\n" | sudo add-apt-repository -y ppa:mozillateam/firefox-ne xt
69 ;;
70 aurora)
71 yes "\n" | sudo add-apt-repository -y ppa:ubuntu-mozilla-daily/f irefox-aurora
72 ;;
73 esac
74 sudo apt-get update --fix-missing
75 sudo apt-get install firefox
76 which firefox
77 ls -l `which firefox`
78 firefox --version
79 ;;
80 esac
81
82 R=tools/python/requirements.txt
83 pip install -r $R --use-mirrors || pip install -r $R
OLDNEW
« no previous file with comments | « bower_components/web-animations-js/.travis-run.sh ('k') | bower_components/web-animations-js/COPYING » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698