Skip to content

Commit

Permalink
Merge pull request #274 from mrVanDalo/feature/travis
Browse files Browse the repository at this point in the history
fix openssl dependency and introduce travis
  • Loading branch information
denisidoro authored Mar 16, 2020
2 parents 2688a72 + ae2b8ee commit 9865851
Show file tree
Hide file tree
Showing 4 changed files with 123 additions and 42 deletions.
54 changes: 54 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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}"
102 changes: 61 additions & 41 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -21,11 +24,15 @@ dirs = "2.0.0"
terminal_size = "0.1.10"
walkdir = "2"


[dependencies.git2]
version = "0.10.0"
default-features = false
features = ["https"]

[target.'cfg(target_os = "macos")'.dependencies.git2]
features = [ "vendored-openssl" ]

[[bin]]
bench = false
path = "src/main.rs"
Expand Down
Loading

0 comments on commit 9865851

Please # to comment.