Skip to content

Commit

Permalink
Add travis.
Browse files Browse the repository at this point in the history
  • Loading branch information
huonw committed May 1, 2015
1 parent c586198 commit 05648e9
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 2 deletions.
20 changes: 20 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
sudo: required
language: rust
rust:
- nightly
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 doc
after_success:
- travis-cargo doc-upload
- travis-cargo coveralls
notifications:
webhooks: http://huon.me:54856/travis
env:
global:
- secure: "jwYDdl4aAP8Kd7w/KmU+kjvA2eSAOvW00meSV74WamxhY+rTsJiOQwG79D3rlsq/T2BQf6TzpBU9AoYLKEmKsmRoezAu0Kv0ouYkGrdUYkt5Gy3iel/HddQLJf+cBlPuOCfut5+mqcMrPU5Xu53T91d1zs872WG0BrTB7hXHtWU="
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ immediately adjacently.

[dev-dependencies]
num = "0"

[features]
unstable = []
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Strided slices.

[![Build Status](https://travis-ci.org/huonw/strided-rs.png)](https://travis-ci.org/huonw/strided-rs) [![Coverage Status](https://coveralls.io/repos/huonw/strided-rs/badge.svg?branch=master)](https://coveralls.io/r/huonw/strided-rs?branch=master)

This library provides two types `Strided` and `MutStrided` as
generalised forms of `&[T]` and `&mut [T]` respectively, where the
elements are regularly spaced in memory, but not necessarily
immediately adjacently.

[Documentation](http://huonw.github.io/strided-rs/strided), [crates.io](https://crates.io/crates/strided)
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@
//! # #![allow(unstable)]
//! extern crate strided;
//! extern crate num; // https://github.com/rust-lang/num
//! use std::num::Int;
//! use std::f64;
//! use num::complex::{Complex, Complex64};
//! use strided::{MutStride, Stride};
Expand Down Expand Up @@ -215,7 +214,7 @@
//! let mut b = [Complex::new(0., 0.); 4];
//!
//! fft(Stride::new(&a), MutStride::new(&mut b));
//! println!("forward: {:?} -> {:?}", a.as_slice(), b.as_slice());
//! println!("forward: {:?} -> {:?}", &a, &b);
//! }
//! ```
//!
Expand Down

0 comments on commit 05648e9

Please sign in to comment.