mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-07-26 09:42:00 -07:00
ci: build man page on ARM cross-compile
This fixes a bug where ripgrep's man page wasn't generated in the ARM cross-compile build. Mostly, this should just require installing asciidoc and making sure we test that it actually works. Fixes #791
This commit is contained in:
12
.travis.yml
12
.travis.yml
@@ -41,6 +41,12 @@ matrix:
|
|||||||
- binutils-arm-linux-gnueabihf
|
- binutils-arm-linux-gnueabihf
|
||||||
- libc6-armhf-cross
|
- libc6-armhf-cross
|
||||||
- libc6-dev-armhf-cross
|
- libc6-dev-armhf-cross
|
||||||
|
# For generating man page.
|
||||||
|
- libxslt1-dev
|
||||||
|
- asciidoc
|
||||||
|
- docbook-xsl
|
||||||
|
- xsltproc
|
||||||
|
- libxml2-utils
|
||||||
# Beta channel. We enable these to make sure there are no regressions in
|
# Beta channel. We enable these to make sure there are no regressions in
|
||||||
# Rust beta releases.
|
# Rust beta releases.
|
||||||
- os: linux
|
- os: linux
|
||||||
@@ -67,6 +73,12 @@ matrix:
|
|||||||
- binutils-arm-linux-gnueabihf
|
- binutils-arm-linux-gnueabihf
|
||||||
- libc6-armhf-cross
|
- libc6-armhf-cross
|
||||||
- libc6-dev-armhf-cross
|
- libc6-dev-armhf-cross
|
||||||
|
# For generating man page.
|
||||||
|
- libxslt1-dev
|
||||||
|
- asciidoc
|
||||||
|
- docbook-xsl
|
||||||
|
- xsltproc
|
||||||
|
- libxml2-utils
|
||||||
install: ci/install.sh
|
install: ci/install.sh
|
||||||
script: ci/script.sh
|
script: ci/script.sh
|
||||||
before_deploy: ci/before_deploy.sh
|
before_deploy: ci/before_deploy.sh
|
||||||
|
16
ci/script.sh
16
ci/script.sh
@@ -23,6 +23,13 @@ main() {
|
|||||||
# sanity check the file type
|
# sanity check the file type
|
||||||
file target/"$TARGET"/debug/rg
|
file target/"$TARGET"/debug/rg
|
||||||
|
|
||||||
|
# Check that we've generated man page and other shell completions.
|
||||||
|
outdir="$(cargo_out_dir "target/$TARGET/debug")"
|
||||||
|
file "$outdir/rg.bash"
|
||||||
|
file "$outdir/rg.fish"
|
||||||
|
file "$outdir/_rg.ps1"
|
||||||
|
file "$outdir/rg.1"
|
||||||
|
|
||||||
# Apparently tests don't work on arm, so just bail now. I guess we provide
|
# Apparently tests don't work on arm, so just bail now. I guess we provide
|
||||||
# ARM releases on a best effort basis?
|
# ARM releases on a best effort basis?
|
||||||
if is_arm; then
|
if is_arm; then
|
||||||
@@ -32,15 +39,6 @@ main() {
|
|||||||
# Test that zsh completions are in sync with ripgrep's actual args.
|
# Test that zsh completions are in sync with ripgrep's actual args.
|
||||||
"$(dirname "${0}")/test_complete.sh"
|
"$(dirname "${0}")/test_complete.sh"
|
||||||
|
|
||||||
# Check that we've generated man page and other shell completions.
|
|
||||||
outdir="$(cargo_out_dir "target/$TARGET/debug")"
|
|
||||||
file "$outdir/rg.bash"
|
|
||||||
file "$outdir/rg.fish"
|
|
||||||
file "$outdir/_rg.ps1"
|
|
||||||
# N.B. man page isn't generated on ARM cross-compile, but we gave up
|
|
||||||
# long before this anyway.
|
|
||||||
file "$outdir/rg.1"
|
|
||||||
|
|
||||||
# Run tests for ripgrep and all sub-crates.
|
# Run tests for ripgrep and all sub-crates.
|
||||||
cargo test --target "$TARGET" --verbose --all
|
cargo test --target "$TARGET" --verbose --all
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user