From 756fd3a98aeda509700834951136d6332fdd742f Mon Sep 17 00:00:00 2001 From: Dominic Date: Sat, 25 Jan 2020 14:11:57 +0100 Subject: [PATCH] some housekeeping --- .gitlab-ci.yml | 6 ++++-- gotham_restful/Cargo.toml | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fe68d8f..c404368 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,7 +12,8 @@ test-default: before_script: - cargo -V script: - - cargo test --all + - cargo test --workspace --lib --tests + - cargo test --workspace --doc cache: paths: - cargo/ @@ -25,7 +26,8 @@ test-all: - apk add --no-cache bash curl - cargo -V script: - - cargo tarpaulin --all --all-features --exclude-files 'cargo/*' --exclude-files 'example/*' --out Xml + - 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 cache: paths: diff --git a/gotham_restful/Cargo.toml b/gotham_restful/Cargo.toml index b83f714..7fbdec6 100644 --- a/gotham_restful/Cargo.toml +++ b/gotham_restful/Cargo.toml @@ -42,3 +42,6 @@ default = [] auth = ["gotham_restful_derive/auth", "base64", "cookie", "jsonwebtoken"] database = ["gotham_restful_derive/database", "gotham_middleware_diesel"] openapi = ["gotham_restful_derive/openapi", "indexmap", "log", "openapiv3"] + +[package.metadata.docs.rs] +all-features = true