Skip to content

Commit 7229db3

Browse files
Bazel cache for travis (prysmaticlabs#236)
* use google cloud storage for remote caching * install gcloud * poke readme to kick travis * Remove cache thing * unpoke README * remove tabs from copy paste * fix more tabs... what happened? * fix formatting i think * parsable yml * try to cache the cloud sdk tools * add gcloud to path * dont need gcloud * move service account to home directory * lets try tmp directory Former-commit-id: 0e844dc112bf6a78e0f3c24eb1ca4ce1ba4f376a [formerly c8106e9] Former-commit-id: f9c69ca
1 parent 68eba02 commit 7229db3

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.travis-bazelrc

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
# TODO: Set up remote caching.
2-
31
startup --host_jvm_args=-Xmx500m --host_jvm_args=-Xms500m
42

53
# Disable sandboxing since it may fail inside of Travis' containers because the
64
# mount system call is not permitted.
75
build --spawn_strategy=standalone --genrule_strategy=standalone
86

7+
# Remote caching over Google Cloud Storage
8+
build --remote_http_cache=https://storage.googleapis.com/prysmatic-bazel-cache
9+
build --google_credentials=/tmp/service-account.json
10+
911
# Set some build options for travis container.
1012
build --local_resources=1536,1.5,0.5
1113
build --noshow_progress
1214
build --verbose_failures
1315
build --sandbox_debug
1416
build --test_output=errors
15-
build --flaky_test_attempts=5
17+
build --flaky_test_attempts=5

.travis.yml

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ matrix:
1313
- os: linux
1414
env: V=0.15.0
1515
before_install:
16+
# Install Bazel
1617
- |
1718
if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
1819
OS=darwin
@@ -40,6 +41,9 @@ matrix:
4041
chmod +x install.sh
4142
./install.sh --user
4243
rm -f install.sh
44+
# Decrypt service account
45+
- openssl aes-256-cbc -K $encrypted_64ca747eb448_key -iv $encrypted_64ca747eb448_iv
46+
-in service-account.json.enc -out /tmp/service-account.json -d
4347

4448
install: true # Skip install go packages.
4549

service-account.json.enc

2.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)