language: rust
before_script:
- rustup component add rustfmt

addons:
    apt:
        packages:
            - libasound2-dev
rust:
    - nightly
    - beta
    - stable

script:
    - cargo fmt --all -- --check
    - cargo build -v
    - cargo test -v
    - cargo doc -v

language: rust
before_script:
- rustup component add rustfmt

addons:
    apt:
        packages:
            - libasound2-dev
matrix:
    include:
        - name: "Test nightly"
          rust: nightly

        - name: "Test beta"
          rust: beta

        - name: "Test stable"
          rust: stable

        - name: "Validate doc"
          rust: stable
          script:
              - cargo doc --no-deps -v

script:
    - cargo fmt --all -- --check
    - cargo build -v
    - cargo test -v


Use a separate job for validating docs
Use a separate job for validating docs
