Run tests on each push
ci/woodpecker/push/rustfmt Pipeline failed Details
ci/woodpecker/push/test Pipeline was successful Details

dev
Jef Roosens 2022-01-05 10:06:46 +01:00
parent bd8bc9796a
commit c543dae46a
Signed by: Jef Roosens
GPG Key ID: 955C0660072F691F
2 changed files with 20 additions and 3 deletions

View File

@ -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

View File

@ -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" ] }