From ca3eebecbe5e45269254591d8c7d8dcdaa3b27fe Mon Sep 17 00:00:00 2001 From: Caemor <11088935+caemor@users.noreply.github.com> Date: Sat, 23 Jan 2021 16:45:31 +0100 Subject: [PATCH 1/3] Try with codecov.yml --- codecov.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 codecov.yml diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..cf6c201 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,15 @@ +coverage: + status: + project: + default: + # basic + target: auto + threshold: 0% + base: auto + flags: + - unit + paths: + - "src" + if_ci_failed: ignore #success, failure, error, ignore + informational: false + only_pulls: false \ No newline at end of file From d572ef0f5dd5d869e5a35a287b7d9d14c7bea747 Mon Sep 17 00:00:00 2001 From: Caemor <11088935+caemor@users.noreply.github.com> Date: Sat, 23 Jan 2021 16:50:55 +0100 Subject: [PATCH 2/3] test it --- src/color.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/color.rs b/src/color.rs index 2c4435a..754b411 100644 --- a/src/color.rs +++ b/src/color.rs @@ -19,6 +19,12 @@ impl core::fmt::Display for OutOfColorRangeParseError { } } +impl OutOfColorRangeParseError { + fn _new(size: u8) -> OutOfColorRangeParseError { + OutOfColorRangeParseError(size) + } +} + /// Only for the Black/White-Displays #[derive(Clone, Copy, PartialEq, Debug)] pub enum Color { From 463afa52c677a42468f5d08c5798fdad8095b228 Mon Sep 17 00:00:00 2001 From: Caemor <11088935+caemor@users.noreply.github.com> Date: Sat, 23 Jan 2021 17:01:11 +0100 Subject: [PATCH 3/3] delete travis + codecov --- .travis.yml | 49 ------------------------------------------------- codecov.yml | 15 --------------- 2 files changed, 64 deletions(-) delete mode 100644 .travis.yml delete mode 100644 codecov.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 5965444..0000000 --- a/.travis.yml +++ /dev/null @@ -1,49 +0,0 @@ -language: rust -rust: - - stable -sudo: required -env: TARGET=x86_64-unknown-linux-gnu - -before_install: - - set -e - - rustup self update - -# install: -# - cargo install cargo-update || echo "cargo-update already installed" -# - cargo install-update -a # update outdated cached binaries -# - cargo install cross || echo "cross already installed" - - #TODO: remove -A clippy::new_ret_no_self when new version of clippy gets released! -script: - - cargo check --all-features - - cargo test --all-features - -cache: cargo -before_cache: - # Travis can't cache files that are not readable by "others" - - chmod -R a+r $HOME/.cargo - - | - if [[ "$TRAVIS_RUST_VERSION" == stable ]]; then - cargo install cargo-tarpaulin - fi - -after_success: | - if [[ "$TRAVIS_RUST_VERSION" == stable ]]; then - # Uncomment the following line for coveralls.io - # cargo tarpaulin --ciserver travis-ci --coveralls $TRAVIS_JOB_ID - - # Uncomment the following two lines create and upload a report for codecov.io - cargo tarpaulin --all-features --out Xml - bash <(curl -s https://codecov.io/bash) -t "$CODECOV_TOKEN" - fi - - -branches: - only: - # release tags - - /^v\d+\.\d+\.\d+.*$/ - - main - -notifications: - email: - on_success: never diff --git a/codecov.yml b/codecov.yml deleted file mode 100644 index cf6c201..0000000 --- a/codecov.yml +++ /dev/null @@ -1,15 +0,0 @@ -coverage: - status: - project: - default: - # basic - target: auto - threshold: 0% - base: auto - flags: - - unit - paths: - - "src" - if_ci_failed: ignore #success, failure, error, ignore - informational: false - only_pulls: false \ No newline at end of file