Enable coveralls.

This commit is contained in:
kennytm 2016-05-14 23:43:38 +08:00
parent 5e3a7ecc74
commit 0435a75244
5 changed files with 56 additions and 11 deletions

1
.gitignore vendored
View file

@ -4,3 +4,4 @@
.DS_Store .DS_Store
*.o *.o
__pycache__ __pycache__
Cargo.lock

View file

@ -1,11 +1,55 @@
# Copied from https://github.com/kennytm/extprim/blob/master/.travis.yml :)
language: rust language: rust
sudo: false sudo: false
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- binutils-dev
- gcc-multilib
os:
- linux
- osx
rust:
- 1.8.0
- nightly
env:
global:
- TRAVIS_CARGO_NIGHTLY_FEATURE=bench
matrix:
- ARCH=x86_64
- ARCH=i686
matrix: matrix:
include: allow_failures:
- rust: stable - env: ARCH=i686
- rust: beta # FIXME: all i686 build panics with the message "Box<Any>", cause all `should_panic` tests to fail.
- rust: nightly
install:
- if [ "$TRAVIS_OS_NAME" = 'linux' ]; then OS=unknown-linux-gnu; else OS=apple-darwin; fi
- SYSROOT=$(rustc --print sysroot)
- export HOST=$ARCH-$OS
- |
if [ ! -d "$SYSROOT/lib/rustlib/$HOST" ]; then
curl -SfLO "https://static.rust-lang.org/dist/rust-$TRAVIS_RUST_VERSION-$HOST.tar.gz" &&
tar xf "rust-$TRAVIS_RUST_VERSION-$HOST.tar.gz" "rust-$TRAVIS_RUST_VERSION-$HOST/rust-std-$HOST/lib/rustlib/$HOST" &&
mv "rust-$TRAVIS_RUST_VERSION-$HOST/rust-std-$HOST/lib/rustlib/$HOST" "$SYSROOT/lib/rustlib"
fi
before_script:
- pip install 'travis-cargo<0.2' --user
- export PATH=$HOME/.local/bin:$HOME/Library/Python/2.7/bin:$PATH
script:
- cargo test --target "$HOST"
- travis-cargo bench -- --target "$HOST"
after_success: after_success:
- cargo doc - travis-cargo coveralls --no-sudo --verify
- curl https://raw.githubusercontent.com/kmcallister/travis-doc-upload/master/travis-doc-upload.sh | sh

View file

@ -2,13 +2,16 @@ qrcode-rust
=========== ===========
[![Build status](https://travis-ci.org/kennytm/qrcode-rust.svg?branch=master)](https://travis-ci.org/kennytm/qrcode-rust) [![Build status](https://travis-ci.org/kennytm/qrcode-rust.svg?branch=master)](https://travis-ci.org/kennytm/qrcode-rust)
[![Coverage Status](https://coveralls.io/repos/github/kennytm/qrcode-rust/badge.svg?branch=coveralls)](https://coveralls.io/github/kennytm/qrcode-rust?branch=coveralls)
[![crates.io](http://meritbadge.herokuapp.com/qrcode)](https://crates.io/crates/qrcode)
[![Apache 2.0](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](./LICENSE)
QR code and Micro QR code encoder in Rust. QR code and Micro QR code encoder in Rust.
```toml ```toml
# Cargo.toml # Cargo.toml
[dependencies.qrcode] [dependencies]
git = "https://github.com/kennytm/qrcode-rust" qrcode = "0.1.7"
``` ```

Binary file not shown.

View file

@ -1,3 +0,0 @@
PROJECT_NAME=qrcode-rust
DOCS_REPO=kennytm/qrcode-rust.git
SSH_KEY_TRAVIS_ID=cbc3a9ac2cf3