Expand CI coverage and update README (#80)

Closes #64
This commit is contained in:
Alex Crichton 2018-01-05 10:43:37 -06:00 committed by Carl Lerche
parent cde387d7e7
commit 555c97b313
4 changed files with 39 additions and 54 deletions

16
.appveyor.yml Normal file
View File

@ -0,0 +1,16 @@
environment:
matrix:
- TARGET: x86_64-pc-windows-msvc
install:
- appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
- rustup-init.exe -y --default-host x86_64-pc-windows-msvc
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
- if NOT "%TARGET%" == "x86_64-pc-windows-msvc" rustup target add %TARGET%
- rustc -V
- cargo -V
build: false
test_script:
- cargo test --target %TARGET%

View File

@ -1,22 +1,23 @@
---
language: rust language: rust
sudo: false sudo: false
rust: matrix:
- stable include:
- beta - rust: stable
- nightly - os: osx
- rust: beta
- rust: nightly
before_script: - rust: nightly
- pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH before_script:
- pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH
script:
- cargo doc --no-deps --all-features
after_success:
- travis-cargo doc-upload
script: script:
- cargo build
- cargo test - cargo test
- cargo doc --no-deps
after_success:
- travis-cargo --only nightly doc-upload --branch new-crate
env: env:
global: global:
@ -25,6 +26,3 @@ env:
notifications: notifications:
email: email:
on_success: never on_success: never
os:
- linux

View File

@ -1,34 +1,20 @@
# tokio-core # tokio
Core I/O and event loop abstraction for asynchronous I/O in Rust built on A work-in-progress rearchitecting of the [tokio-core] crate in line with
`futures` and `mio`. [tokio-rs/tokio-rfcs#3][rfc]
[![Build Status](https://travis-ci.org/tokio-rs/tokio-core.svg?branch=master)](https://travis-ci.org/tokio-rs/tokio-core) [tokio-core]: https://github.com/tokio-rs/tokio-core
[![Build status](https://ci.appveyor.com/api/projects/status/caxmxbg8181kk9mq/branch/master?svg=true)](https://ci.appveyor.com/project/carllerche/tokio-core) [rfc]: https://github.com/tokio-rs/tokio-rfcs/pull/3
[Documentation](https://docs.rs/tokio-core) [![Build Status](https://travis-ci.org/tokio-rs/tokio.svg?branch=new-crate)](https://travis-ci.org/tokio-rs/tokio)
[![Build status](https://ci.appveyor.com/api/projects/status/uxiinkgipvy6ehrj/branch/new-crate?svg=true)](https://ci.appveyor.com/project/alexcrichton/tokio/branch/new-crate)
[Tutorial](https://tokio.rs/) [Documentation](https://tokio-rs.github.io/tokio)
## Usage ## Usage
First, add this to your `Cargo.toml`: This project is a **work in progress**, more information will be added here as
it progresses.
```toml
[dependencies]
tokio-core = "0.1"
```
Next, add this to your crate:
```rust
extern crate tokio;
```
You can find extensive documentation and examples about how to use this crate
online at [https://tokio.rs](https://tokio.rs) as well as the `examples` folder
in this repository. The [API documentation](https://docs.rs/tokio-core) is also
a great place to get started for the nitty-gritty.
# License # License

View File

@ -1,15 +0,0 @@
environment:
matrix:
- TARGET: x86_64-pc-windows-msvc
install:
- curl -sSf -o rustup-init.exe https://win.rustup.rs/
- rustup-init.exe -y --default-host %TARGET%
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
- rustc -V
- cargo -V
build: false
test_script:
- cargo build
- cargo test