v4l 0.6.0

Safe video4linux (v4l) bindings
Documentation
language: rust
rust: stable

os: linux
cache: cargo

before_install:
  - sudo apt-get install libv4l-dev

jobs:
  allow_failures:
    env:
      - CAN_FAIL=true
  fast_finish: true
  include:
    - {}
    - stage: fmt
      before_script:
        - rustup component add rustfmt
      script:
        - cargo fmt -- --check
    - stage: clippy
      env: CAN_FAIL=true
      before_script:
        - rustup component add clippy
      script:
        - cargo clippy -- -D warnings
    - stage: build
      script:
        - cargo build
        - cargo build --no-default-features --features libv4l
    - stage: test
      script:
        - cargo test

stages:
  - fmt
  - build
  - test
  - clippy