From c543dae46a9641b30332bbb9ee76b0e56c52a51a Mon Sep 17 00:00:00 2001 From: Jef Roosens Date: Wed, 5 Jan 2022 10:06:46 +0100 Subject: [PATCH] Run tests on each push --- .woodpecker/.test.yml | 21 ++++++++++++++++++++- Cargo.toml | 2 -- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/.woodpecker/.test.yml b/.woodpecker/.test.yml index 435c59b..e17a895 100644 --- a/.woodpecker/.test.yml +++ b/.woodpecker/.test.yml @@ -26,10 +26,29 @@ pipeline: when: event: push + # tests: + # image: 'rust:1.57' + # commands: + # - export RUSTC_WRAPPER="$PWD"/sccache + # - cargo test + # when: + # event: pull_request tests: image: 'rust:1.57' + environment: + - SCCACHE_BUCKET=rbci + - SCCACHE_ENDPOINT=s3.rustybever.be + - SCCACHE_S3_USE_SSL=true + - CARGO_INCREMENTAL=false commands: + - rustup component add clippy - export RUSTC_WRAPPER="$PWD"/sccache + - export SCCACHE_S3_KEY_PREFIX=$CI_REPO_NAME - cargo test + - ./sccache --show-stats + secrets: + - aws_access_key_id + - aws_secret_access_key when: - event: pull_request + event: push + diff --git a/Cargo.toml b/Cargo.toml index a6fb6b8..3b9f5c9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,8 +3,6 @@ name = "rb" version = "0.1.0" edition = "2018" -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - [dependencies] # Backend web framework rocket = { version = "0.5.0-rc.1", features = [ "json", "uuid" ] }