feat: also exclude tests
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
12dff478a3
commit
7800794271
@ -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,
|
||||||
|
@ -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(),
|
||||||
|
Loading…
Reference in New Issue
Block a user