1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-01-19 05:49:14 +02:00
ripgrep/ci/script.sh

21 lines
451 B
Bash
Raw Normal View History

#!/bin/bash
# build, test and generate docs in this phase
2016-09-05 20:08:46 -04:00
set -ex
. "$(dirname $0)/utils.sh"
2016-09-05 20:08:46 -04:00
main() {
2016-09-09 18:10:20 -04:00
# disable_cross_doctests
2017-12-19 01:04:49 +02:00
cargo build --target "${TARGET}" --verbose --all
if [ "$(architecture)" = "amd64" ] || [ "$(architecture)" = "i386" ]; then
2017-12-19 01:04:49 +02:00
cargo test --target "${TARGET}" --verbose --all
"$( dirname "${0}" )/test_complete.sh"
fi
# sanity check the file type
file target/$TARGET/debug/rg
2016-09-05 20:08:46 -04:00
}
main