From a5046fd901d9f26c229c7f7606686f86699cb087 Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Mon, 15 Jun 2020 23:50:41 -0400 Subject: Set up travis for continuous testing --- .travis.yml | 16 ++++++++++++++++ Cargo.toml | 4 ++++ README.md | 2 ++ 3 files changed, 22 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..56a26b3 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,16 @@ +language: rust +rust: + - nightly + +cache: cargo + +install: + - rustup component add clippy + - cargo install cargo-udeps + - cargo build + +script: + - cargo build + - cargo test + - cargo clippy -- --deny warnings + - cargo udeps --locked --all-targets diff --git a/Cargo.toml b/Cargo.toml index 1ec0475..6195e33 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,6 +7,10 @@ authors = ["Owen Jacobson "] homepage = "https://things-to-check.herokuapp.com/" edition = "2018" +[badges.travis-ci] +project = "ojacobson/things-to-check" +branch = "main" + [dependencies] actix-rt = "~1.0" actix-web = "~2.0" diff --git a/README.md b/README.md index 909dc53..cfdd2f2 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Things To Check +[![Build Status](https://travis-ci.org/ojacobson/things-to-check.svg?branch=main)](https://travis-ci.org/ojacobson/things-to-check) + A friend of mine used to run an IRC bot that could provide "helpful" troubleshooting suggestions, based on places the folks in that chat had stubbed their toes in the past. -- cgit v1.2.3