rust/.travis.yml
Johann 87110e7d71 Report test coverage with travis-cargo & coveralls
As this project grows, it might be beneficial to require pull requests
to keep a certain level of test coverage. Plus it's a fun statistic.
2015-11-12 22:57:25 +01:00

50 lines
896 B
YAML

sudo: false
language: rust
rust:
- stable
- beta
- nightly
os:
- linux
- osx
cache:
directories:
- $HOME/.cargo
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
before_script:
- |
pip install 'travis-cargo<0.2' --user &&
export PATH=$HOME/.local/bin:$PATH
script:
- |
travis-cargo build &&
travis-cargo test
after_success:
- travis-cargo coveralls --no-sudo
before_deploy:
# TODO: cross build
- cargo build --release --target=x86_64-unknown-linux-gnu
- tar czf rustfmt-x86_64-unknown-linux-gnu.tar.gz Contributing.md Design.md README.md -C target/x86_64-unknown-linux-gnu/release/rustfmt rustfmt
deploy:
provider: releases
api_key:
secure: "your own encrypted key"
file:
- rustfmt-x86_64-unknown-linux-gnu.tar.gz
on:
repo: nrc/rustfmt
tags: true
condition: "$TRAVIS_OS_NAME = linux"
skip_cleanup: true