diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..071cf057 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,38 @@ +language: "rust" +cache: "cargo" +rust: + - 1.34.2 + - stable + - beta + - nightly +jobs: + allow_failures: + - rust: nightly + fast_finish: true + +before_script: + - rustup component add rustfmt + - | + if [ "$TRAVIS_RUST_VERSION" != "1.34.2" ]; 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.34.2" ]; then + cargo clippy --all-targets --all-features -- -D warnings + fi + - cargo build --verbose + - cargo test --verbose +if: "type != push OR (tag IS blank AND branch = master)" +notifications: + email: false diff --git a/README.md b/README.md index 6d2d8a7a..885284b2 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # ruma-appservice-api +[![Build Status](https://travis-ci.org/ruma/ruma-appservice-api.svg?branch=master)](https://travis-ci.org/ruma/ruma-appservice-api) + **ruma-appservice-api** contains serializable types for the requests and responses for each endpoint in the [Matrix](https://matrix.org/) application service API specification. These types can be shared by application service and server code.