# libpathrs: safe path resolution on Linux
# Copyright (C) 2019, 2020 Aleksa Sarai <cyphar@cyphar.com>
# Copyright (C) 2019, 2020 SUSE LLC
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at your option) any
# later version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License along
# with this program. If not, see <https://www.gnu.org/licenses/>.
language: rust
cache: cargo
rust:
- stable
- beta
- nightly
matrix:
include:
- name: "rust-fmt"
rust: 1.40.0
install:
- rustup component add rustfmt-preview
script:
- cargo fmt -- --check
- name: "rust-clippy"
rust: 1.40.0
install:
- rustup component add clippy-preview
script:
- cargo clippy --all-features -- -D clippy::all
- name: "rust-warn"
env: RUSTFLAGS="-D warnings"
rust: stable
script:
- cargo check --tests
jobs:
allow_failures:
- rust: nightly
- name: "rust-warn"
script:
- cargo build --all
- cargo test --all