Run coverage analysis on tests
This commit is contained in:
parent
9a130fb169
commit
fe60de9183
2 changed files with 23 additions and 6 deletions
26
.travis.yml
26
.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
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
---
|
||||
|
||||
|
|
Loading…
Reference in a new issue