2018-02-04 12:14:38 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# build, test and generate docs in this phase
|
2016-09-05 20:08:46 -04:00
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
2018-02-04 12:14:38 -05:00
|
|
|
. "$(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
|
2017-12-17 15:41:51 +02:00
|
|
|
if [ "$(architecture)" = "amd64" ] || [ "$(architecture)" = "i386" ]; then
|
2017-12-19 01:04:49 +02:00
|
|
|
cargo test --target "${TARGET}" --verbose --all
|
2017-12-17 15:41:51 +02:00
|
|
|
"$( 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
|