on v0.15.4 help sign in
bat/ci/script.bash
20 lines 908 B history raw
1#!/usr/bin/env bash
3set -ex
5# Incorporate TARGET env var to the build and test process
6cargo build --target "$TARGET" --verbose
8# We cannot run arm executables on linux
9if [[ $TARGET != arm-unknown-linux-gnueabihf ]] && [[ $TARGET != aarch64-unknown-linux-gnu ]]; then
10 cargo test --target "$TARGET" --verbose
12 # Run 'bat' on its own source code and the README
13 cargo run --target "$TARGET" -- src/bin/bat/main.rs README.md --paging=never
14fi
16# Check bat-as-a-library, which has a smaller set of dependencies
17cargo check --target "$TARGET" --verbose --lib --no-default-features --features regex-onig
18cargo check --target "$TARGET" --verbose --lib --no-default-features --features regex-onig,git
19cargo check --target "$TARGET" --verbose --lib --no-default-features --features regex-onig,paging
20cargo check --target "$TARGET" --verbose --lib --no-default-features --features regex-onig,git,paging