File tree 2 files changed +7
-49
lines changed
2 files changed +7
-49
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash -e
2
2
3
- # Build script for Google Cloud Build
3
+ ./cloudbuild_setup.sh
4
4
5
- function log() {
6
- d=$( date +' %Y-%m-%d %H:%M:%S' )
7
- echo $d " " $1
8
- }
9
-
10
- log " Running Copybara tests"
11
-
12
- log " Fetching dependencies"
13
- log " Running apt-get update --fix-missing"
14
-
15
- apt-get update --fix-missing
16
- apt-get install locales
17
- apt-get -y install mercurial
18
- apt-get install -y lsb-release
19
- apt-get install -y software-properties-common
20
-
21
- add-apt-repository ppa:git-core/ppa -y
22
- apt install git -y
23
-
24
- apt-get -y install quilt
25
-
26
- log " Extracting Bazel"
27
- # Only because first time it extracts the installation
28
- bazel version
29
-
30
- echo " -----------------------------------"
31
- echo " Versions:"
32
- lsb_release -a
33
- hg --version | grep " (version" | sed ' s/.*[(]version \([^ ]*\)[)].*/Mercurial: \1/'
34
- git --version | sed ' s/git version/Git:/'
35
- bazel version | grep " Build label" | sed ' s/Build label:/Bazel:/'
36
- java -version
37
- echo " Quilt:"
38
- quilt --version
39
- echo " -----------------------------------"
40
-
41
- log " Setting Locale"
42
- export LANGUAGE=en_US.UTF-8
43
- export LANG=en_US.UTF-8
44
- export LC_ALL=en_US.UTF-8
45
- locale-gen en_US.UTF-8
46
- update-locale LANG=en_US.UTF-8
47
-
48
- echo " Running 'bazel $@ '"
5
+ log " Running 'bazel $@ '"
49
6
time bazel " $@ "
50
7
51
8
log " Done"
Original file line number Diff line number Diff line change @@ -13,14 +13,15 @@ log "Fetching dependencies"
13
13
log " Running apt-get update --fix-missing"
14
14
15
15
apt-get update --fix-missing
16
- apt-get install locales
17
- apt-get -y install mercurial
18
- apt-get -y install software-properties-common
16
+ apt-get install -y locales
17
+ apt-get install -y mercurial
18
+ apt-get install -y lsb-release
19
+ apt-get install -y software-properties-common
19
20
20
21
add-apt-repository ppa:git-core/ppa -y
21
22
apt install git -y
22
23
23
- apt-get -y install quilt
24
+ apt-get install -y quilt
24
25
25
26
log " Extracting Bazel"
26
27
# Only because first time it extracts the installation
You can’t perform that action at this time.
0 commit comments