Switching sccache from local to Redis (#10971)

* Switching cache from local to Radis

* sccache -s won't work. All the images are taken from own registry

* new images addresses

* statisticss after stop sccache server
sccache CC&CXX
This commit is contained in:
Denis S. Soldatov aka General-Beck
2019-10-02 23:01:20 +03:00
committed by GitHub
parent f24bff5998
commit 0bd2979c04
5 changed files with 20 additions and 28 deletions

View File

@@ -3,6 +3,8 @@
set -e # fail on any error
set -u # treat unset variables as error
export CC="sccache "$CC
export CXX="sccache "$CXX
echo "__________Show ENVIROMENT__________"
echo "CI_SERVER_NAME: " $CI_SERVER_NAME
echo "CARGO_HOME: " $CARGO_HOME
@@ -55,3 +57,5 @@ do
echo "> ${binary} cannot be hashed with cross-compiled binary (keccak256)"
fi
done
#show sccache statistics
sccache --stop-server

View File

@@ -4,6 +4,8 @@ set -e # fail on any error
set -u # treat unset variables as error
#use nproc `linux only
THREADS=$(nproc)
export CC="sccache gcc"
export CXX="sccache g++"
echo "________Running the C++ example________"
DIR=parity-clib/examples/cpp/build
@@ -15,3 +17,5 @@ make VERBOSE=1 -j $THREADS
# that to happen on CI
cd -
rm -rf $DIR
#show sccache statistics
sccache --stop-server

View File

@@ -5,7 +5,10 @@ echo "________Running test-linux.sh________"
set -e # fail on any error
set -u # treat unset variables as error
export CC="sccache gcc"
export CXX="sccache g++"
FEATURES="json-tests"
OPTIONS="--release"
#use nproc `linux only
THREADS=$(nproc)
@@ -16,3 +19,6 @@ rustup show
echo "________Running Parity Full Test Suite________"
# Why are we using RUSTFLAGS? See https://github.com/paritytech/parity-ethereum/pull/10719
CARGO_INCREMENTAL=0 RUSTFLAGS="-C opt-level=3 -C overflow-checks=on -C debuginfo=2 -Ctarget-feature=+aes,+sse2,+ssse3" time cargo test $OPTIONS --features "$FEATURES" --locked --all --target $CARGO_TARGET --verbose --color=never -- --test-threads $THREADS
#show sccache statistics
sccache --stop-server

View File

@@ -15,5 +15,6 @@ done
for spec in ethcore/res/ethereum/*.json; do
if ! ./target/release/chainspec "$spec"; then ERR=1; fi
done
#show sccache statistics
sccache --stop-server
exit $ERR