Try using sccache
continuous-integration/drone the build failed
Details
continuous-integration/drone the build failed
Details
This commit is contained in:
parent
23458d6a6e
commit
1a3bd2b520
|
@ -11,14 +11,23 @@ pipeline:
|
||||||
# - 'vendor'
|
# - 'vendor'
|
||||||
|
|
||||||
unitTests:
|
unitTests:
|
||||||
image: rust:1.54.0-slim
|
image: docker.bics.ga/rei_ci/rust-sccache
|
||||||
commands:
|
commands:
|
||||||
- DEBIAN_FRONTEND=noninteractive apt-get -qq update && apt-get -yqq install pkg-config libssl-dev build-essential libsqlite3-dev > /dev/null
|
- 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 build --all
|
||||||
- cargo test --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:
|
testSuite:
|
||||||
image: rust:1.54.0-slim-bullseye
|
image: docker.bics.ga/rei_ci/rust-sccache
|
||||||
commands:
|
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
|
- 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
|
- pg_ctlcluster 13 main start
|
||||||
|
@ -32,6 +41,14 @@ pipeline:
|
||||||
- python3.9 -m venv testsuite/.venv
|
- python3.9 -m venv testsuite/.venv
|
||||||
- ./testsuite/.venv/bin/pip install -e testsuite -e datman-helper-postgres -e datman-helper-mysql
|
- ./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
|
- 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:
|
deployManual:
|
||||||
image: rust:1.54.0-slim
|
image: rust:1.54.0-slim
|
||||||
|
|
Loading…
Reference in New Issue