mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-16 14:07:04 +00:00
Merge pull request #478 from KeenS/travis
Create a binary from travis ci and so on
This commit is contained in:
commit
7d4bdc646d
23
.travis.yml
23
.travis.yml
@ -1,11 +1,30 @@
|
||||
sudo: false
|
||||
language: rust
|
||||
rust:
|
||||
- stable
|
||||
- beta
|
||||
- nightly
|
||||
|
||||
sudo: false
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user