Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
criterion 0.1.1 - Docs.rs
[go: Go Back, main page]

criterion 0.1.1

Statistics-driven micro-benchmarking library
Documentation
sudo: false

language: rust

cache: cargo

rust: nightly

os:
  - linux
  - osx

matrix:
  # Clear the whole matrix
  exclude:
    - os: linux
    - os: osx
  # Add each target manually
  include:
    - os: linux
      env: GNUPLOT=no
    - os: linux
      env: GNUPLOT=yes
      addons:
        apt:
          packages:
            - gnuplot
    - os: linux
      env: CLIPPY=yes
    - os: linux
      env: DOCS=yes
    - os: osx
      env: GNUPLOT=no
    - os: osx
      env: GNUPLOT=yes

before_script:
  - if [ "$DOCS" = "yes" ]; then
      pip install 'travis-cargo<0.2' --user;
      export PATH=$HOME/.local/bin:$PATH;
    fi

install:
  - sh ci/install.sh

script:
  - if [ "$CLIPPY" = "yes" ]; then
      cargo clippy --all -- --cfg clippy;
    elif [ "$DOCS" = "yes" ]; then
      cargo clean;
      cargo doc --all --no-deps;
      cd book;
      mdbook build;
      cd ..;
      cp -r book/book/ target/doc/book/;
      travis-cargo doc-upload || true;
    else
      cargo build --release;
      cargo test --all --release;
      cargo bench;
    fi
  
env:
  global:
    - secure: "f/HaMzQu7d6ochSjE5lUjJbXYWlhbzslyTuWq+Lub/r2TTL4hVlT9koC4RT7W73V3WDrwYIqEGmwvscVffnijZRebl/PV+6WlOlYJEdAgKxGROpFGDIJGRGAc/f3s6OcJ+Hr8rmRF70fYEl45hs6J53X8s+CVRuty+r/UdilRpM="

branches:
  only: master

notifications:
  email:
    on_success: never