2019-09-13 23:12:01 +00:00
|
|
|
language: rust
|
|
|
|
rust:
|
2019-11-07 19:55:24 +00:00
|
|
|
- stable
|
|
|
|
- beta
|
2019-09-13 23:12:01 +00:00
|
|
|
- nightly
|
2019-10-10 20:47:31 +00:00
|
|
|
os:
|
2019-10-10 20:56:21 +00:00
|
|
|
- windows
|
|
|
|
- osx
|
2019-10-10 20:47:31 +00:00
|
|
|
- linux
|
2019-10-13 03:51:15 +00:00
|
|
|
env:
|
|
|
|
- RUST_BACKTRACE=1
|
2019-12-07 04:52:28 +00:00
|
|
|
jobs:
|
|
|
|
allow_failures:
|
|
|
|
- rust: nightly
|
2019-10-10 20:36:29 +00:00
|
|
|
|
|
|
|
GH_TOKEN: &GH_TOKEN
|
|
|
|
secure: ckWcEQHz8SekxaAdBNpiT+YF6ST0pJS15lC4MNT1mIzLMgEXpJI/peNwwRf+FGJiyqNtaK5YUAB6cP25w9QZsrwBLmLJ9wcGaHJuPc7XKvpHkEiFwTDaOqrIRmYhvAfjwH5IycnyAlAzsHsPujmhCWQyiW4YSziCOqtByY4ftzchOCh44kWmqf7HI6uSPSFfqHtTdkM21Dgwm+NpYPmwO0wmrEIwCNkN62Fb+Ghk9AqJH67vDLs+mvKQTdDc2X+fDT9sQxTI4dftSGx2JDkivwVfxX3kOroZvIRG6WmEGYyzU6wLYJlfFSg6svofdOZwNC71Byr5gEFLZOCfWrd2P4gF+CMA61PqGQMBAgAMVX4kCMblERyAdTVFKtP+WPOEBoWqsNLdzQhulF+w71MDRBnfDmuQ2TRegobCTvKefp0I3YYLLoKrDNMIvQ9572DcvLME4hzBwnizy8G1UBepqz3oa3R/6Kr8NlYBHnbbUBmzVZW1jZokz3T/c7r2fqC7h6pC8VtUh/e246ROF0k9mCVKKrsfrEZ4UjRL8RmuAQ12CeAa1GsSSwtbbwW2VIX0iVVXo080iGMKZHTTvDIRHkjA3MzPuAZyUruCjp9yQmpbG/cSzR8aJPzIia9+qXp0jmML3Du52qsF8m68gbcOpNS0CHOQY9wmuWhCatmzt2Y=
|
|
|
|
|
|
|
|
DEPLOY_TO_GITHUB: &DEPLOY_TO_GITHUB
|
|
|
|
before_deploy:
|
|
|
|
- git config --local user.name "ClementTsang"
|
|
|
|
- git config --local user.email "clementjhtsang@gmail.com"
|
|
|
|
- name="bottom-$TRAVIS_TAG-$TARGET"
|
|
|
|
- mkdir $name
|
2019-10-19 20:29:04 +00:00
|
|
|
- cp target/$TARGET/release/btm $name/
|
2019-10-10 20:36:29 +00:00
|
|
|
- cp README.md LICENSE-MIT LICENSE-APACHE $name/
|
|
|
|
- tar czvf $name.tar.gz $name
|
|
|
|
deploy:
|
|
|
|
provider: releases
|
|
|
|
api_key: *GH_TOKEN
|
|
|
|
file: bottom-$TRAVIS_TAG-$TARGET.tar.gz
|
2019-10-10 20:54:33 +00:00
|
|
|
file_glob: true
|
2019-10-10 20:36:29 +00:00
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
|
|
|
branch: master
|
|
|
|
tags: true
|
|
|
|
|
2019-09-13 23:12:01 +00:00
|
|
|
matrix:
|
2019-10-10 20:47:31 +00:00
|
|
|
fast_finish: true
|
2019-10-10 20:36:29 +00:00
|
|
|
include:
|
|
|
|
- name: Linux Binary
|
|
|
|
env: TARGET=x86_64-unknown-linux-musl
|
2019-10-10 20:54:33 +00:00
|
|
|
os: linux
|
2019-12-07 04:52:28 +00:00
|
|
|
rust: stable
|
2019-10-10 20:36:29 +00:00
|
|
|
before_script: rustup target add $TARGET
|
2019-10-10 21:18:25 +00:00
|
|
|
script: cargo build --release --target $TARGET
|
2019-10-10 20:36:29 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- musl-tools
|
|
|
|
<<: *DEPLOY_TO_GITHUB
|
2019-10-10 20:47:31 +00:00
|
|
|
|
2019-10-10 20:54:33 +00:00
|
|
|
- name: Windows Binary
|
2019-10-10 20:58:42 +00:00
|
|
|
env: TARGET=x86_64-pc-windows-msvc
|
2019-10-10 20:54:33 +00:00
|
|
|
os: windows
|
2019-12-07 04:52:28 +00:00
|
|
|
rust: stable
|
2019-10-10 20:54:33 +00:00
|
|
|
before_script: rustup target add $TARGET
|
2019-10-10 21:18:25 +00:00
|
|
|
script: cargo build --release --target $TARGET
|
2019-10-10 20:54:33 +00:00
|
|
|
<<: *DEPLOY_TO_GITHUB
|
|
|
|
|
2019-10-10 20:36:29 +00:00
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
on_success: never
|