Skip to content

Commit cad5839

Browse files
committed
release
1 parent b2a704c commit cad5839

File tree

17 files changed

+91
-17
lines changed

17 files changed

+91
-17
lines changed

.buildnumber

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1
1+
2

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
## CHANGELOG
22

3-
### v0.8.17
3+
### v0.8.17 (2022-01-21)
44

55
* Enhancement: New zip/unzip commands #294 (thanks @Red-Teapot)
6+
* Maintenance: Upgrade dependencies
67

78
### v0.8.16 (2022-10-17)
89

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Makefile.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
[env]
33
CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true
44
CARGO_MAKE_BINARY_EXECUTABLE_NAME = "duck"
5+
CARGO_MAKE_DUCKSCRIPT_SKIP_UNSTABLE_TESTS = true
56

67
[env.sdk]
78
CARGO_MAKE_WORKSPACE_INCLUDE_MEMBERS = ["duckscript_sdk", "duckscript_cli"]

duckscript_cli/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "duckscript_cli"
3-
version = "0.8.16"
3+
version = "0.8.17"
44
authors = ["Sagie Gur-Ari <sagiegurari@gmail.com>"]
55
description = "The duckscript command line executable."
66
license = "Apache-2.0"
@@ -28,7 +28,7 @@ path = "src/main.rs"
2828

2929
[dependencies]
3030
duckscript = { version = "^0.7.5", path = "../duckscript" }
31-
duckscriptsdk = { version = "^0.8.16", path = "../duckscript_sdk", default-features = false }
31+
duckscriptsdk = { version = "^0.8.17", path = "../duckscript_sdk", default-features = false }
3232

3333
[features]
3434
tls-rustls = ["duckscriptsdk/tls-rustls"]

duckscript_sdk/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "duckscriptsdk"
3-
version = "0.8.16"
3+
version = "0.8.17"
44
authors = ["Sagie Gur-Ari <sagiegurari@gmail.com>"]
55
description = "The duckscript SDK."
66
license = "Apache-2.0"

duckscript_sdk/Makefile.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ additional_profiles = [
77
"publish-pre-cleanup",
88
]
99

10+
[env]
11+
CARGO_MAKE_DUCKSCRIPT_SKIP_UNSTABLE_TESTS = true
12+
1013
[tasks.clean-target]
1114
condition = { files_exist = ["./target"] }
1215
script = '''

duckscript_sdk/src/sdk/std/net/ftp/list/mod_test.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ fn run_no_args() {
1414

1515
#[test]
1616
fn run_valid() {
17-
test::run_script_and_validate(
18-
vec![create("")],
19-
"out = ftp_list --host test.rebex.net --username demo --password password",
20-
CommandValidation::Contains("out".to_string(), "handle:".to_string()),
21-
);
17+
if !test::skip_unstable() {
18+
test::run_script_and_validate(
19+
vec![create("")],
20+
"out = ftp_list --host test.rebex.net --username demo --password password",
21+
CommandValidation::Contains("out".to_string(), "handle:".to_string()),
22+
);
23+
}
2224
}

duckscript_sdk/src/sdk/std/net/ftp/nlst/mod_test.rs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use super::*;
2+
23
use crate::test;
34
use crate::test::CommandValidation;
45

@@ -14,9 +15,11 @@ fn run_no_args() {
1415

1516
#[test]
1617
fn run_valid() {
17-
test::run_script_and_validate(
18-
vec![create("")],
19-
"out = ftp_nlst --host test.rebex.net --username demo --password password",
20-
CommandValidation::Contains("out".to_string(), "handle:".to_string()),
21-
);
18+
if !test::skip_unstable() {
19+
test::run_script_and_validate(
20+
vec![create("")],
21+
"out = ftp_nlst --host test.rebex.net --username demo --password password",
22+
CommandValidation::Contains("out".to_string(), "handle:".to_string()),
23+
);
24+
}
2225
}

duckscript_sdk/src/test/mod.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ use duckscript::types::error::ScriptError;
55
use duckscript::types::instruction::Instruction;
66
use duckscript::types::runtime::{Context, StateValue};
77
use std::collections::HashMap;
8+
use std::env;
89

910
#[derive(Clone)]
1011
pub(crate) struct EmptyCommand {}
@@ -325,3 +326,16 @@ pub(crate) fn is_handles_empty(state: &HashMap<String, StateValue>) {
325326
_ => panic!("Invalid state type."),
326327
}
327328
}
329+
330+
pub(crate) fn skip_unstable() -> bool {
331+
let skip = match env::var("CARGO_MAKE_DUCKSCRIPT_SKIP_UNSTABLE_TESTS") {
332+
Ok(value) => value == "true",
333+
Err(_) => false,
334+
};
335+
336+
if skip {
337+
println!("Skipping Test...");
338+
}
339+
340+
skip
341+
}

0 commit comments

Comments
 (0)