Try using sccache
continuous-integration/drone the build failed Details

This commit is contained in:
Olivier 'reivilibre' 2021-11-14 15:23:36 +00:00
parent 23458d6a6e
commit 1a3bd2b520
1 changed files with 19 additions and 2 deletions

View File

@ -11,14 +11,23 @@ pipeline:
# - 'vendor'
unitTests:
image: rust:1.54.0-slim
image: docker.bics.ga/rei_ci/rust-sccache
commands:
- DEBIAN_FRONTEND=noninteractive apt-get -qq update && apt-get -yqq install pkg-config libssl-dev build-essential libsqlite3-dev > /dev/null
- cargo build --all
- cargo test --all
environment:
RUSTC_WRAPPER: /usr/local/bin/sccache
SCCACHE_S3_USE_SLL: "true"
SCCACHE_ENDPOINT: "richie.m4.tanukitsu.net"
secrets:
- sccache_bucket
- aws_access_key_id
- aws_secret_access_key
testSuite:
image: rust:1.54.0-slim-bullseye
image: docker.bics.ga/rei_ci/rust-sccache
commands:
- DEBIAN_FRONTEND=noninteractive apt-get -qq update && apt-get -yqq -o=Dpkg::Use-Pty=0 install pkg-config libssl-dev build-essential libsqlite3-dev python3.9 python3.9-venv postgresql postgresql-client mariadb-server mariadb-client zstd lz4 > /dev/null
- pg_ctlcluster 13 main start
@ -32,6 +41,14 @@ pipeline:
- python3.9 -m venv testsuite/.venv
- ./testsuite/.venv/bin/pip install -e testsuite -e datman-helper-postgres -e datman-helper-mysql
- cd testsuite && . .venv/bin/activate && TEST_POSTGRES=$(hostname),testsuitedb,root TEST_MYSQL=$(hostname),testsuitemydb,root green
environment:
RUSTC_WRAPPER: /usr/local/bin/sccache
SCCACHE_S3_USE_SLL: "true"
SCCACHE_ENDPOINT: "richie.m4.tanukitsu.net"
secrets:
- sccache_bucket
- aws_access_key_id
- aws_secret_access_key
deployManual:
image: rust:1.54.0-slim