feat: also exclude tests
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2024-08-07 11:24:26 +02:00
parent 12dff478a3
commit 7800794271
Signed by: kjuulh
GPG Key ID: D85D7535F18F35FA
2 changed files with 13 additions and 4 deletions

View File

@ -107,9 +107,13 @@ impl LeptosBuild {
) )
.await?; .await?;
let binary_build = let binary_build = build_container.with_exec(vec![
build_container "cargo",
.with_exec(vec!["cargo", "leptos", "build", "--release", "-vv"]); "leptos",
"build",
"--release",
"-vv",
]);
self.build_debian_image( self.build_debian_image(
binary_build, binary_build,
@ -146,7 +150,11 @@ impl LeptosBuild {
"-p", "-p",
bin_name, bin_name,
]) ])
.file(format!("target/{}/release/{}", target.to_string(), bin_name)); .file(format!(
"target/{}/release/{}",
target.to_string(),
bin_name
));
self.build_alpine_image( self.build_alpine_image(
bin, bin,

View File

@ -89,6 +89,7 @@ impl RustSource {
let mut excludes = self.exclude.clone(); let mut excludes = self.exclude.clone();
excludes.push("**/src".to_string()); excludes.push("**/src".to_string());
excludes.push("**/test".to_string());
let directory = self.client.host().directory_opts( let directory = self.client.host().directory_opts(
source.display().to_string(), source.display().to_string(),