From 3e4cd7abd4fa3f87c7de3952a10c65928d93979d Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Fri, 17 Apr 2020 19:54:23 +0200 Subject: [PATCH] Add LICENSE file, travis configuration --- .travis.yml | 37 +++++++++++++++++++++++++++++++++++++ LICENSE | 19 +++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 .travis.yml create mode 100644 LICENSE diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..129d203c --- /dev/null +++ b/.travis.yml @@ -0,0 +1,37 @@ +language: "rust" +cache: "cargo" +rust: + - 1.36.0 + - stable + - beta + - nightly +jobs: + allow_failures: + - rust: nightly + fast_finish: true + +before_script: + - rustup component add rustfmt + - | + if [ "$TRAVIS_RUST_VERSION" != "1.36.0" ]; then + rustup component add clippy + fi + - | + if [ "$TRAVIS_RUST_VERSION" == "stable" ]; then + cargo install --force cargo-audit + fi + - cargo generate-lockfile +script: + - | + if [ "$TRAVIS_RUST_VERSION" == "stable" ]; then + cargo audit + fi + - cargo fmt -- --check + - | + if [ "$TRAVIS_RUST_VERSION" != "1.36.0" ]; then + cargo clippy --all-targets --all-features -- -D warnings + fi + - cargo build --verbose + - cargo test --no-default-features --verbose + - cargo test --all-features --verbose +if: "type != push OR (tag IS blank AND branch = master)" diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..4d376442 --- /dev/null +++ b/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2016 Jimmy Cuadra + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE.