2015-10-17 03:40:40 -05:00
|
|
|
sudo: false
|
2015-04-30 03:16:18 -05:00
|
|
|
language: rust
|
2015-05-21 22:50:58 -05:00
|
|
|
rust:
|
2015-10-22 17:09:12 -05:00
|
|
|
- stable
|
|
|
|
- beta
|
2015-05-21 22:50:58 -05:00
|
|
|
- nightly
|
2015-10-17 03:40:40 -05:00
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
2015-11-11 11:41:12 -06:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.cargo
|
2015-04-30 03:16:18 -05:00
|
|
|
|
2015-11-12 15:38:35 -06:00
|
|
|
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
|
|
|
|
|
2015-04-30 03:16:18 -05:00
|
|
|
script:
|
2015-11-12 15:38:35 -06:00
|
|
|
- |
|
|
|
|
travis-cargo build &&
|
|
|
|
travis-cargo test
|
|
|
|
|
|
|
|
after_success:
|
|
|
|
- travis-cargo coveralls --no-sudo
|
2015-10-17 03:40:40 -05:00
|
|
|
|
|
|
|
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
|