Skip to content

Commit 627ab8e

Browse files
Kokoro workers include bazel, pip, mercurial and locales
Change-Id: I1756894c97a9f5f5e42236f84dd10a1213e918c8
1 parent f3fa671 commit 627ab8e

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

ci/ubuntu/continuous.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ set -e
2020
set -x
2121

2222
cd git/copybara
23-
./cloudbuild.sh
23+
./cibuild.sh

cibuild.sh

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/bin/bash -e
2+
3+
function log() {
4+
d=$(date +'%Y-%m-%d %H:%M:%S')
5+
echo $d" "$1
6+
}
7+
8+
log "Running Copybara tests"
9+
10+
log "Fetching dependencies"
11+
12+
log "Extracting Bazel"
13+
# Only because first time it extracts the installation
14+
bazel version
15+
16+
echo "-----------------------------------"
17+
echo "Versions:"
18+
hg --version | grep "(version" | sed 's/.*[(]version \([^ ]*\)[)].*/Mercurial: \1/'
19+
git --version | sed 's/git version/Git:/'
20+
bazel version | grep "Build label" | sed 's/Build label:/Bazel:/'
21+
echo "-----------------------------------"
22+
23+
log "Setting Locale"
24+
export LANGUAGE=en_US.UTF-8
25+
export LANG=en_US.UTF-8
26+
export LC_ALL=en_US.UTF-8
27+
locale-gen en_US.UTF-8
28+
sudo update-locale LANG=en_US.UTF-8
29+
30+
log "Running Bazel"
31+
bazel test ... --test_output=errors --sandbox_tmpfs_path=/tmp -j 1000
32+
33+
log "Done"

0 commit comments

Comments
 (0)