Files
hyper/.travis.yml
Sean McArthur 2d2d5574a6 feat(lib): redesign API to use Futures and Tokio
There are many changes involved with this, but let's just talk about
user-facing changes.

- Creating a `Client` and `Server` now needs a Tokio `Core` event loop
to attach to.
- `Request` and `Response` both no longer implement the
`std::io::{Read,Write}` traits, but instead represent their bodies as a
`futures::Stream` of items, where each item is a `Chunk`.
- The `Client.request` method now takes a `Request`, instead of being
used as a builder, and returns a `Future` that resolves to `Response`.
- The `Handler` trait for servers is no more, and instead the Tokio
`Service` trait is used. This allows interoperability with generic
middleware.

BREAKING CHANGE: A big sweeping set of breaking changes.
2017-01-16 10:44:27 -08:00

47 lines
1.4 KiB
YAML

language: rust
matrix:
fast_finish: true
include:
- rust: nightly
env: FEATURES="--features nightly"
- rust: beta
- rust: stable
cache:
apt: true
directories:
- target/debug/deps
- target/debug/build
script:
- ./.travis/readme.py
- cargo build --verbose $FEATURES
- cargo test --verbose $FEATURES
- 'for f in ./doc/**/*.md; do echo "Running rustdoc on $f"; rustdoc -L ./target/debug -L ./target/debug/deps --test $f; done'
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
after_success: |
[ $TRAVIS_RUST_VERSION = stable ] &&
wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz &&
tar xzf master.tar.gz && mkdir kcov-master/build && cd kcov-master/build && cmake .. && make && make install DESTDIR=../tmp && cd ../.. &&
ls target/debug &&
./kcov-master/tmp/usr/local/bin/kcov --coveralls-id=$TRAVIS_JOB_ID --exclude-pattern=/.cargo target/kcov target/debug/hyper-* &&
[ $TRAVIS_PULL_REQUEST = false ] &&
{ [ "$TRAVIS_TAG" != "" ] || [ "$TRAVIS_BRANCH" == "master" ]; } &&
./.travis/docs.sh &&
echo "\nDocs published.\n"
env:
global:
- secure: bcrNns6QyPdm/2eQtgnjX0PrNgo1GsfMOo8+ReI0jhwGEK5s3lwMvEN3pxgseEEWWzcXbScBy9OsVAHQ34zC5ENOLBlP3Gpc8FTgWoNrzVxNte/2mrnaNb+hLsXS8j8rGtXA0kpe/Z6poqsqoHiGZv6SSnm/vPUr6GSC6uiIO0U=
notifications:
email: false