[go: up one dir, main page]

cansi 2.2.1

Catergorise ANSI - ANSI escape code parser and categoriser
Documentation
sudo: required
language: rust
cache: cargo

before_script:
  - rustup component add clippy
  - rustup component add rustfmt

matrix:
  include:
    - os: linux
      rust: stable
    - os: linux
      rust: beta
    - os: linux
      rust: nightly
      addons:
        apt:
          packages:
            - libssl-dev
    - os: windows
      rust: stable
  allow_failures:
    - os: windows

before_cache: |
  if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_RUST_VERSION" == nightly ]]; then
    cargo install cargo-tarpaulin
  fi

script:
  - cargo fmt -- --check
  - cargo clippy
  - cargo build
  - cargo test

after_success: |
  if [[  "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_RUST_VERSION" == nightly ]]; then
    cargo tarpaulin -v --out Xml
    bash <(curl -s https://codecov.io/bash)
  fi