From fe60de91835bb4e28b0a5c8ccba541c375e7a58b Mon Sep 17 00:00:00 2001 From: Magnus Hallin Date: Mon, 12 Sep 2016 20:57:42 +0200 Subject: [PATCH] Run coverage analysis on tests --- .travis.yml | 26 +++++++++++++++++++++----- README.md | 3 ++- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 971468ee..b111ff7b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,25 +10,41 @@ matrix: allow_failures: - rust: nightly +addons: + apt: + packages: + - libcurl4-openssl-dev + - libelf-dev + - libdw-dev + - binutils-dev + env: global: - secure: "SsepHEYRmW9ee3RhxPpqGuPigZINFfA/yOwUJFseQt4t+Zs90r1xdl3Q8eDfPlnvBsL7Rd0QQrFDO7JUaimVLlgQkUnrl62o0CYzkodp+qtocyAHS00W6WTqi8Y6E6KBxPshCl03dRLaySUfx5TqTLTIHkJ0G6vDW35k7hRrA3221lRphs5rrpvAZ21pqsDsNLH3HVo792L6A0kOtBa3ocw1pgHLxnBbArIViu2htUuFvY/TgsmVbAdlow0efw/xkcJ/p0/r5q7igLek6Iqk8udfRc7CktvoiFQ2vUnhtNtQu/zYll3Q7OUx5d+w5lhbzz2QINmsezBEisH9k1haL7dMviLPp0pn4WZed60KovO0Iqfgjy1utTaKvJVfNWYsgkfU8c9a/z2rcZOKwXNKQW2ptBrtVjaB9dk7eMoyuFCDZwNtKqvG+ZKmvMpun+R8mmx+buOmN8Vlf5ygIoGxz3nbEtlLYGVTXHfdXXqRkFIwtiYVJEO7SLRKT9pbx1E++ARsi2+y8bXJT4e4z0osYMq9EsiFUpw3J2gcshrgseqkB7UgCZ3SXuitJnJNfDAU3a3nwwS/JiAunZMNnC4rKUBbl7WbTB4Cpw7EgVOlCqcyyzlkNl3xabLzTFzLOfSHLTVX5FmGNsD21vBoS5/8ejftx9wuV3rGHxuO3i3+A3k=" +before_script: + - | + pip install 'travis-cargo<0.2' --user && + export PATH=$HOME/.local/bin:$PATH + +script: + - | + travis-cargo build && + travis-cargo test && + travis-cargo bench && + travis-cargo --only stable doc + script: - cargo build --verbose - - cargo build --verbose --release - - cargo build --verbose --features iron-handlers - - cargo build --verbose --features iron-handlers --release - - cargo test --verbose --features iron-handlers - - cargo test --verbose --features iron-handlers --release before_deploy: - rm -rf target/package/ - cargo package --verbose after_success: | + travis-cargo coveralls --no-sudo --verify -- --features iron-handlers if [ "$TRAVIS_BRANCH" = master -a "$TRAVIS_PULL_REQUEST" = false -a "$TRAVIS_RUST_VERSION" = stable ]; then set -e diff --git a/README.md b/README.md index c76abee0..d8b61ab3 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,8 @@ > GraphQL server library for Rust -![build status](https://travis-ci.org/mhallin/juniper.svg?branch=master) +[![build status](https://img.shields.io/travis/mhallin/juniper.svg?maxAge=2592000&style=flat-square)](https://travis-ci.org/mhallin/juniper) +[![Crates.io](https://img.shields.io/crates/v/juniper.svg?maxAge=2592000&style=flat-square)](https://crates.io/crates/juniper) ---