diff --git a/.travis-bazelrc b/.travis-bazelrc index 18214aed1..9ef93c841 100644 --- a/.travis-bazelrc +++ b/.travis-bazelrc @@ -1,15 +1,17 @@ -# TODO: Set up remote caching. - startup --host_jvm_args=-Xmx500m --host_jvm_args=-Xms500m # Disable sandboxing since it may fail inside of Travis' containers because the # mount system call is not permitted. build --spawn_strategy=standalone --genrule_strategy=standalone +# Remote caching over Google Cloud Storage +build --remote_http_cache=https://storage.googleapis.com/prysmatic-bazel-cache +build --google_credentials=/tmp/service-account.json + # Set some build options for travis container. build --local_resources=1536,1.5,0.5 build --noshow_progress build --verbose_failures build --sandbox_debug build --test_output=errors -build --flaky_test_attempts=5 \ No newline at end of file +build --flaky_test_attempts=5 diff --git a/.travis.yml b/.travis.yml index 86748b84d..a561496ae 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,6 +13,7 @@ matrix: - os: linux env: V=0.15.0 before_install: + # Install Bazel - | if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then OS=darwin @@ -40,6 +41,9 @@ matrix: chmod +x install.sh ./install.sh --user rm -f install.sh + # Decrypt service account + - openssl aes-256-cbc -K $encrypted_64ca747eb448_key -iv $encrypted_64ca747eb448_iv + -in service-account.json.enc -out /tmp/service-account.json -d install: true # Skip install go packages. diff --git a/service-account.json.enc b/service-account.json.enc new file mode 100644 index 000000000..0c3e9f716 Binary files /dev/null and b/service-account.json.enc differ