Add LICENSE file, travis configuration
This commit is contained in:
parent
c0e751669f
commit
3e4cd7abd4
37
.travis.yml
Normal file
37
.travis.yml
Normal file
@ -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)"
|
19
LICENSE
Normal file
19
LICENSE
Normal file
@ -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.
|
Loading…
x
Reference in New Issue
Block a user