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

Side by Side Diff: compute_engine_scripts/buildbots/vm_setup_utils.sh

Issue 1236793007: GCE setup: Replace default Clang with 3.6 (Closed) Base URL: https://skia.googlesource.com/buildbot@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 # 2 #
3 # Utility functions for the Skia GCE setup scripts. 3 # Utility functions for the Skia GCE setup scripts.
4 # 4 #
5 # Copyright 2014 Google Inc. All Rights Reserved. 5 # Copyright 2014 Google Inc. All Rights Reserved.
6 # Author: rmistry@google.com (Ravi Mistry) 6 # Author: rmistry@google.com (Ravi Mistry)
7 7
8 8
9 function install_packages { 9 function install_packages {
10 # Add new packages that are not yet part of the image below. 10 # Add new packages that are not yet part of the image below.
11 echo 11 echo
12 echo "Install Required packages" 12 echo "Install Required packages"
13 $GCOMPUTE_CMD ssh --ssh_user=$PROJECT_USER $INSTANCE_NAME \ 13 $GCOMPUTE_CMD ssh --ssh_user=$PROJECT_USER $INSTANCE_NAME \
14 "sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password pa ssword tmp_pass' && " \ 14 "sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password pa ssword tmp_pass' && " \
15 "sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_ag ain password tmp_pass' && " \ 15 "sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_ag ain password tmp_pass' && " \
16 "sudo apt-get -y install mercurial mysql-client mysql-server valgrind libosm esa-dev npm " \ 16 "sudo apt-get -y install mercurial mysql-client mysql-server valgrind libosm esa-dev npm " \
17 " nodejs-legacy libexpat1-dev:i386 && " \ 17 " nodejs-legacy libexpat1-dev:i386 clang-3.6 && " \
18 "mysql -uroot -ptmp_pass -e \"SET PASSWORD = PASSWORD('');\" && " \ 18 "mysql -uroot -ptmp_pass -e \"SET PASSWORD = PASSWORD('');\" && " \
19 "wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64. deb && " \ 19 "wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64. deb && " \
20 "mkdir -p ~/.config/google-chrome && touch ~/.config/google-chrome/First\ Ru n && " \ 20 "mkdir -p ~/.config/google-chrome && touch ~/.config/google-chrome/First\ Ru n && " \
21 "(sudo dpkg -i google-chrome-stable_current_amd64.deb || sudo apt-get -f -y install) && " \ 21 "(sudo dpkg -i google-chrome-stable_current_amd64.deb || sudo apt-get -f -y install) && " \
22 "rm google-chrome-stable_current_amd64.deb " \ 22 "rm google-chrome-stable_current_amd64.deb " \
23 || FAILED="$FAILED InstallPackages" 23 || FAILED="$FAILED InstallPackages"
24 echo 24 echo
25 } 25 }
26 26
27 function setup_symlinks { 27 function setup_symlinks {
28 # Add new symlinks that are not yet part of the image below. 28 # Add new symlinks that are not yet part of the image below.
29 echo 29 echo
30 echo "Setup Symlinks" 30 echo "Setup Symlinks"
31 # $GCOMPUTE_CMD ssh --ssh_user=$PROJECT_USER $INSTANCE_NAME \ 31 $GCOMPUTE_CMD ssh --ssh_user=$PROJECT_USER $INSTANCE_NAME \
32 # "sudo ln -s -f /usr/bin/ccache /usr/local/bin/cc" \ 32 "sudo ln -s -f /usr/bin/clang-3.6 /usr/bin/clang && " \
33 # || FAILED="$FAILED InstallPackages" 33 "sudo ln -s -f /usr/bin/clang++-3.6 /usr/bin/clang++" \
34 || FAILED="$FAILED InstallPackages"
34 echo 35 echo
35 } 36 }
36 37
37 function install_go { 38 function install_go {
38 GO_VERSION="go1.4.2.linux-amd64" 39 GO_VERSION="go1.4.2.linux-amd64"
39 echo 40 echo
40 echo "Install Go" 41 echo "Install Go"
41 $GCOMPUTE_CMD ssh --ssh_user=$PROJECT_USER $INSTANCE_NAME \ 42 $GCOMPUTE_CMD ssh --ssh_user=$PROJECT_USER $INSTANCE_NAME \
42 "wget https://storage.googleapis.com/golang/$GO_VERSION.tar.gz && " \ 43 "wget https://storage.googleapis.com/golang/$GO_VERSION.tar.gz && " \
43 "tar -zxvf $GO_VERSION.tar.gz && " \ 44 "tar -zxvf $GO_VERSION.tar.gz && " \
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 } 130 }
130 131
131 function reboot { 132 function reboot {
132 echo 133 echo
133 echo "===== Rebooting the instance ======" 134 echo "===== Rebooting the instance ======"
134 $GCOMPUTE_CMD ssh --ssh_user=$PROJECT_USER $INSTANCE_NAME \ 135 $GCOMPUTE_CMD ssh --ssh_user=$PROJECT_USER $INSTANCE_NAME \
135 "sudo reboot" \ 136 "sudo reboot" \
136 || FAILED="$FAILED Reboot" 137 || FAILED="$FAILED Reboot"
137 echo 138 echo
138 } 139 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698