mirror of
https://github.com/denisidoro/navi
synced 2024-11-14 15:57:13 +00:00
travis: add travis build script
This commit is contained in:
parent
b70fd7d66a
commit
7c44194aee
3 changed files with 58 additions and 1 deletions
54
.travis.yml
Normal file
54
.travis.yml
Normal file
|
@ -0,0 +1,54 @@
|
|||
# https://travis-ci.org/denisidoro/navi
|
||||
language: rust
|
||||
|
||||
jobs:
|
||||
include:
|
||||
|
||||
- name: run tests
|
||||
rust: stable
|
||||
script:
|
||||
- cargo test --all --locked
|
||||
- rustup component add rustfmt-preview
|
||||
- cargo fmt --all -- --check
|
||||
env: RUST_BACKTRACE=1
|
||||
|
||||
- name: build binary on ubuntu
|
||||
rust: stable
|
||||
script: cargo build --release --locked
|
||||
|
||||
- name: build binary for x86_64-unknown-linux-musl
|
||||
rust: stable
|
||||
script:
|
||||
- cargo install cross
|
||||
- cross build --release --locked --target x86_64-unknown-linux-musl
|
||||
|
||||
- name: build binary for aarch64-linux-android
|
||||
rust: stable
|
||||
script:
|
||||
- cargo install cross
|
||||
- cross build --release --locked --target aarch64-linux-android
|
||||
|
||||
- name: build binary for armv7-linux-androideabi
|
||||
rust: stable
|
||||
script:
|
||||
- cargo install cross
|
||||
- cross build --release --locked --target armv7-linux-androideabi
|
||||
|
||||
- name: build binary for armv7-unknown-linux-musleabihf
|
||||
rust: stable
|
||||
script:
|
||||
- cargo install cross
|
||||
- cross build --release --locked --target armv7-unknown-linux-musleabihf
|
||||
|
||||
- name: build binary on osx
|
||||
os: osx
|
||||
rust: stable
|
||||
script: cargo build --release --locked
|
||||
|
||||
notifications:
|
||||
irc:
|
||||
on_failure: always
|
||||
channels:
|
||||
- "irc.freenode.net#navi"
|
||||
template:
|
||||
- "%{result} - %{repository_slug} %{branch} \"%{commit_subject}\" %{build_url}"
|
|
@ -11,6 +11,9 @@ keywords = ["cheatsheets", "terminal", "cli", "tui", "shell"]
|
|||
categories = ["command-line-utilities"]
|
||||
license = "Apache-2.0"
|
||||
|
||||
[badges]
|
||||
travis-ci = { repository = "denisidoro/navi", branch = "master" }
|
||||
|
||||
[dependencies]
|
||||
regex = "1.3.4"
|
||||
structopt = "0.3"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# navi <img src="https://user-images.githubusercontent.com/3226564/65362934-b4432500-dbdf-11e9-8f75-815fbc5cbf8f.png" alt="icon" height="28px"/> [![Actions Status](https://github.com/denisidoro/navi/workflows/Tests/badge.svg)](https://github.com/denisidoro/navi/actions) ![GitHub release](https://img.shields.io/github/v/release/denisidoro/navi?include_prereleases)
|
||||
# navi <img src="https://user-images.githubusercontent.com/3226564/65362934-b4432500-dbdf-11e9-8f75-815fbc5cbf8f.png" alt="icon" height="28px"/> [![Actions Status](https://github.com/denisidoro/navi/workflows/Tests/badge.svg)](https://github.com/denisidoro/navi/actions) [![Build Status](https://travis-ci.org/denisidoro/navi.svg?branch=master)](https://travis-ci.org/denisidoro/navi) ![GitHub release](https://img.shields.io/github/v/release/denisidoro/navi?include_prereleases)
|
||||
|
||||
> :information_source: If you're here because you upgraded **navi** and are having some issues, please check [this thread](https://github.com/denisidoro/navi/issues/201).
|
||||
|
||||
|
|
Loading…
Reference in a new issue