mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-03 08:37:37 +00:00
Enable Remote Caching & Use Host GO Version (#578)
* Revert "Add Skip Coverage Condition in Coverage.sh (#416)"
This reverts commit 72a5dd1cf4
.
* add coverage.sh back
* remote cache
* fixed formatting
* Add support for cache reads and writes
* trying to get this newline to not be escaped. please behave travis
* last attempt at new line...
This commit is contained in:
parent
542ddef9e8
commit
c73f4c0fd3
@ -1,9 +1,12 @@
|
|||||||
startup --host_jvm_args=-Xmx500m --host_jvm_args=-Xms500m
|
startup --host_jvm_args=-Xmx500m --host_jvm_args=-Xms500m
|
||||||
|
|
||||||
# Remote caching over Google Cloud Storage
|
# Remote caching over Google Cloud Storage
|
||||||
# TODO(#282): Enable remote caching/execution
|
# Read-only
|
||||||
#build:remote --remote_http_cache=https://storage.googleapis.com/prysmatic-bazel-cache
|
build:remote --remote_http_cache=https://storage.googleapis.com/prysmatic-bazel-cache
|
||||||
#build:remote --google_credentials=/tmp/service-account.json
|
build:remote --remote_upload_local_results=false
|
||||||
|
# Read-write (prysmatic branches only)
|
||||||
|
build:remote-rw --remote_http_cache=https://storage.googleapis.com/prysmatic-bazel-cache
|
||||||
|
build:remote-rw --google_credentials=/tmp/service-account.json
|
||||||
|
|
||||||
# Set some build options for travis container.
|
# Set some build options for travis container.
|
||||||
build --local_resources=1536,1.5,0.5
|
build --local_resources=1536,1.5,0.5
|
||||||
|
34
.travis.yml
34
.travis.yml
@ -27,6 +27,8 @@ matrix:
|
|||||||
before_install:
|
before_install:
|
||||||
# Install Bazel
|
# Install Bazel
|
||||||
- |
|
- |
|
||||||
|
echo "" >> WORKSPACE
|
||||||
|
echo "go_register_toolchains(go_version = \"host\")" >> WORKSPACE
|
||||||
if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
|
if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
|
||||||
OS=darwin
|
OS=darwin
|
||||||
else
|
else
|
||||||
@ -39,12 +41,13 @@ matrix:
|
|||||||
./install.sh --user
|
./install.sh --user
|
||||||
rm -f install.sh
|
rm -f install.sh
|
||||||
# Decrypt service account (only works on prysmaticlabs branches)
|
# Decrypt service account (only works on prysmaticlabs branches)
|
||||||
# TODO(#282): enable remote caching / execution
|
- if [[ $encrypted_64ca747eb448_iv ]]; then
|
||||||
#- if [[ $encrypted_64ca747eb448_iv ]]; then
|
openssl aes-256-cbc -K $encrypted_64ca747eb448_key -iv $encrypted_64ca747eb448_iv
|
||||||
# openssl aes-256-cbc -K $encrypted_64ca747eb448_key -iv $encrypted_64ca747eb448_iv
|
-in service-account.json.enc -out /tmp/service-account.json -d;
|
||||||
# -in service-account.json.enc -out /tmp/service-account.json -d;
|
REMOTE_FLAGS=--config=remote-rw;
|
||||||
# REMOTE_FLAGS=--config=remote;
|
else
|
||||||
# fi
|
REMOTE_FLAGS=--config=remote;
|
||||||
|
fi
|
||||||
|
|
||||||
install: true # Skip install go packages.
|
install: true # Skip install go packages.
|
||||||
|
|
||||||
@ -54,7 +57,7 @@ matrix:
|
|||||||
bazel \
|
bazel \
|
||||||
--bazelrc=.travis-bazelrc \
|
--bazelrc=.travis-bazelrc \
|
||||||
build \
|
build \
|
||||||
//...
|
//... $REMOTE_FLAGS
|
||||||
# Run all tests.
|
# Run all tests.
|
||||||
- |
|
- |
|
||||||
bazel \
|
bazel \
|
||||||
@ -75,6 +78,8 @@ matrix:
|
|||||||
before_install:
|
before_install:
|
||||||
# Install Bazel
|
# Install Bazel
|
||||||
- |
|
- |
|
||||||
|
echo "" >> WORKSPACE
|
||||||
|
echo "go_register_toolchains(go_version = \"host\")" >> WORKSPACE
|
||||||
if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
|
if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
|
||||||
OS=darwin
|
OS=darwin
|
||||||
else
|
else
|
||||||
@ -87,12 +92,13 @@ matrix:
|
|||||||
./install.sh --user
|
./install.sh --user
|
||||||
rm -f install.sh
|
rm -f install.sh
|
||||||
# Decrypt service account (only works on prysmaticlabs branches)
|
# Decrypt service account (only works on prysmaticlabs branches)
|
||||||
# TODO(#282): enable remote caching / execution
|
- if [[ $encrypted_64ca747eb448_iv ]]; then
|
||||||
#- if [[ $encrypted_64ca747eb448_iv ]]; then
|
openssl aes-256-cbc -K $encrypted_64ca747eb448_key -iv $encrypted_64ca747eb448_iv
|
||||||
# openssl aes-256-cbc -K $encrypted_64ca747eb448_key -iv $encrypted_64ca747eb448_iv
|
-in service-account.json.enc -out /tmp/service-account.json -d;
|
||||||
# -in service-account.json.enc -out /tmp/service-account.json -d;
|
REMOTE_FLAGS=--config=remote-rw;
|
||||||
# REMOTE_FLAGS=--config=remote;
|
else
|
||||||
# fi
|
REMOTE_FLAGS=--config=remote;
|
||||||
|
fi
|
||||||
|
|
||||||
install: true # Skip install go packages.
|
install: true # Skip install go packages.
|
||||||
|
|
||||||
@ -102,7 +108,7 @@ matrix:
|
|||||||
bazel \
|
bazel \
|
||||||
--bazelrc=.travis-bazelrc \
|
--bazelrc=.travis-bazelrc \
|
||||||
build \
|
build \
|
||||||
//...
|
//... $REMOTE_FLAGS
|
||||||
# Run all tests.
|
# Run all tests.
|
||||||
- |
|
- |
|
||||||
bazel \
|
bazel \
|
||||||
|
Loading…
Reference in New Issue
Block a user