7d4bdc646d
Create a binary from travis ci and so on
31 lines
598 B
YAML
31 lines
598 B
YAML
sudo: false
|
|
language: rust
|
|
rust:
|
|
- stable
|
|
- beta
|
|
- nightly
|
|
os:
|
|
- linux
|
|
- osx
|
|
|
|
script:
|
|
- cargo build
|
|
- cargo test
|
|
|
|
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
|