2015-10-17 10:40:40 +02:00
|
|
|
sudo: false
|
2015-04-30 10:16:18 +02:00
|
|
|
language: rust
|
2015-05-22 05:50:58 +02:00
|
|
|
rust:
|
2015-10-23 00:09:12 +02:00
|
|
|
- stable
|
|
|
|
- beta
|
2015-05-22 05:50:58 +02:00
|
|
|
- nightly
|
2015-10-17 10:40:40 +02:00
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
2015-11-11 18:41:12 +01:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.cargo
|
2015-04-30 10:16:18 +02:00
|
|
|
|
2015-11-12 22:38:35 +01:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- libcurl4-openssl-dev
|
|
|
|
- libelf-dev
|
|
|
|
- libdw-dev
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- |
|
|
|
|
pip install 'travis-cargo<0.2' --user &&
|
2015-11-12 23:47:24 +01:00
|
|
|
export PATH=$HOME/.local/bin:/usr/local/bin:$PATH
|
2015-11-12 22:38:35 +01:00
|
|
|
|
2015-04-30 10:16:18 +02:00
|
|
|
script:
|
2015-11-12 22:38:35 +01:00
|
|
|
- |
|
2015-11-12 23:47:24 +01:00
|
|
|
cargo build &&
|
|
|
|
cargo test
|
2015-11-12 22:38:35 +01:00
|
|
|
|
|
|
|
after_success:
|
|
|
|
- travis-cargo coveralls --no-sudo
|
2015-10-17 10:40:40 +02: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
|