Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
30587b2f97
commit
c893dc9005
@ -296,6 +296,16 @@ impl RustService {
|
|||||||
pub async fn build_test(&self) -> eyre::Result<()> {
|
pub async fn build_test(&self) -> eyre::Result<()> {
|
||||||
let base = self.build_base().await?;
|
let base = self.build_base().await?;
|
||||||
|
|
||||||
|
let before_build = self
|
||||||
|
.stages
|
||||||
|
.iter()
|
||||||
|
.filter_map(|s| match s {
|
||||||
|
RustServiceStage::BeforeBuild(m) => Some(m),
|
||||||
|
_ => None,
|
||||||
|
})
|
||||||
|
.collect::<Vec<_>>();
|
||||||
|
let base = self.run_stage(before_build, base).await?;
|
||||||
|
|
||||||
base.with_exec(vec!["cargo", "test", "--release"])
|
base.with_exec(vec!["cargo", "test", "--release"])
|
||||||
.sync()
|
.sync()
|
||||||
.await?;
|
.await?;
|
||||||
|
Loading…
Reference in New Issue
Block a user