From de187b76affc96104a4c84f40e7983b3c43193fd Mon Sep 17 00:00:00 2001 From: koalp Date: Mon, 21 Sep 2020 00:20:49 +0200 Subject: [PATCH] ci: add drone tests --- .drone.yml | 13 +++++++++++++ src/nested_type.rs | 3 ++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..7dd2784 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,13 @@ +--- +kind: pipeline +name: normal +type: docker + +steps: + - name: test + image: rust:1.31 + pull: true + commands: + - cargo build + - cargo test + - cargo fmt -- --check diff --git a/src/nested_type.rs b/src/nested_type.rs index e171744..b59deea 100644 --- a/src/nested_type.rs +++ b/src/nested_type.rs @@ -12,8 +12,9 @@ impl Type { /// /// Creating a simple type and converting it into a python type String /// ``` + /// # use parsing::nested_type::Type; /// let my_type = Type{repr: "Type".into(), ..Default::default()}; - /// my_type.to_python() + /// my_type.to_python(); /// ``` pub fn to_python(&self) -> String { match self.subtypes.len() {