diff --git a/.codecov.yml b/.codecov.yml deleted file mode 100644 index 3364d32..0000000 --- a/.codecov.yml +++ /dev/null @@ -1,12 +0,0 @@ -codecov: - require_ci_to_pass: yes - -coverage: - precision: 2 - round: down - range: "0...100" - - status: - project: no - patch: no - changes: no diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f380abf..1d4bf0e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,12 +23,13 @@ test-all: stage: test image: msrd0/rust:alpine-tarpaulin before_script: - - apk add --no-cache bash curl - cargo -V script: - cargo test --workspace --all-features --doc - - cargo tarpaulin --all --all-features --exclude-files 'cargo/*' --exclude-files 'example/*' --ignore-panics --ignore-tests --out Xml -v - - wget -qO- https://codecov.io/bash | bash -s -- -y .codecov.yml -X gcov + - cargo tarpaulin --all --all-features --exclude-files 'cargo/*' --exclude-files 'gotham_restful_derive/*' --exclude-files 'example/*' --ignore-panics --ignore-tests --out Html -v + artifacts: + paths: + - tarpaulin-report.html cache: paths: - cargo/ diff --git a/README.md b/README.md index 04458b1..7af32f1 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,27 @@ -# gotham_restful - -[![Build Status](https://gitlab.com/msrd0/gotham-restful/badges/master/pipeline.svg)](https://gitlab.com/msrd0/gotham-restful/commits/master) -[![Coverage Status](https://codecov.io/gl/msrd0/gotham-restful/branch/master/graph/badge.svg)](https://codecov.io/gl/msrd0/gotham-restful) +
+

gotham-restful

+
+
+ + pipeline status + + + coverage report + + + crates.io + + + docs.rs + + + Build with Rust + + + Minimum Rust Version + +
+
This crate is an extension to the popular [gotham web framework][gotham] for Rust. The idea is to have several RESTful resources that can be added to the gotham router. This crate will take care @@ -12,14 +32,6 @@ resources. ## Usage -This crate targets stable rust, currently requiring rustc 1.40+. To use this crate, add the -following to your `Cargo.toml`: - -```toml -[dependencies] -gotham_restful = "0.0.1" -``` - A basic server with only one resource, handling a simple `GET` request, could look like this: ```rust diff --git a/README.tpl b/README.tpl index ee8a529..a148bef 100644 --- a/README.tpl +++ b/README.tpl @@ -1,5 +1,26 @@ -# {{crate}} - -{{badges}} +
+

gotham-restful

+
+
+ + pipeline status + + + coverage report + + + crates.io + + + docs.rs + + + Build with Rust + + + Minimum Rust Version + +
+
{{readme}} diff --git a/gotham_restful/Cargo.toml b/gotham_restful/Cargo.toml index 29fc087..acff902 100644 --- a/gotham_restful/Cargo.toml +++ b/gotham_restful/Cargo.toml @@ -13,7 +13,6 @@ repository = "https://gitlab.com/msrd0/gotham-restful" [badges] gitlab = { repository = "msrd0/gotham-restful", branch = "master" } -codecov = { repository = "msrd0/gotham-restful", branch = "master", service = "gitlab" } [dependencies] base64 = { version = ">=0.10.1, <0.12", optional = true } diff --git a/gotham_restful/src/lib.rs b/gotham_restful/src/lib.rs index ed38ffa..a30ba32 100644 --- a/gotham_restful/src/lib.rs +++ b/gotham_restful/src/lib.rs @@ -8,14 +8,6 @@ resources. # Usage -This crate targets stable rust, currently requiring rustc 1.40+. To use this crate, add the -following to your `Cargo.toml`: - -```toml -[dependencies] -gotham_restful = "0.0.1" -``` - A basic server with only one resource, handling a simple `GET` request, could look like this: ```rust,no_run diff --git a/gotham_restful_derive/Cargo.toml b/gotham_restful_derive/Cargo.toml index 7374c47..b2b7ec6 100644 --- a/gotham_restful_derive/Cargo.toml +++ b/gotham_restful_derive/Cargo.toml @@ -15,7 +15,6 @@ proc-macro = true [badges] gitlab = { repository = "msrd0/gotham-restful", branch = "master" } -codecov = { repository = "msrd0/gotham-restful", branch = "master", service = "gitlab" } [dependencies] heck = "0.3.1"