Run tests on each push
parent
bd8bc9796a
commit
c543dae46a
|
@ -26,10 +26,29 @@ pipeline:
|
||||||
when:
|
when:
|
||||||
event: push
|
event: push
|
||||||
|
|
||||||
|
# tests:
|
||||||
|
# image: 'rust:1.57'
|
||||||
|
# commands:
|
||||||
|
# - export RUSTC_WRAPPER="$PWD"/sccache
|
||||||
|
# - cargo test
|
||||||
|
# when:
|
||||||
|
# event: pull_request
|
||||||
tests:
|
tests:
|
||||||
image: 'rust:1.57'
|
image: 'rust:1.57'
|
||||||
|
environment:
|
||||||
|
- SCCACHE_BUCKET=rbci
|
||||||
|
- SCCACHE_ENDPOINT=s3.rustybever.be
|
||||||
|
- SCCACHE_S3_USE_SSL=true
|
||||||
|
- CARGO_INCREMENTAL=false
|
||||||
commands:
|
commands:
|
||||||
|
- rustup component add clippy
|
||||||
- export RUSTC_WRAPPER="$PWD"/sccache
|
- export RUSTC_WRAPPER="$PWD"/sccache
|
||||||
|
- export SCCACHE_S3_KEY_PREFIX=$CI_REPO_NAME
|
||||||
- cargo test
|
- cargo test
|
||||||
|
- ./sccache --show-stats
|
||||||
|
secrets:
|
||||||
|
- aws_access_key_id
|
||||||
|
- aws_secret_access_key
|
||||||
when:
|
when:
|
||||||
event: pull_request
|
event: push
|
||||||
|
|
||||||
|
|
|
@ -3,8 +3,6 @@ name = "rb"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
# Backend web framework
|
# Backend web framework
|
||||||
rocket = { version = "0.5.0-rc.1", features = [ "json", "uuid" ] }
|
rocket = { version = "0.5.0-rc.1", features = [ "json", "uuid" ] }
|
||||||
|
|
Loading…
Reference in New Issue