set -ex
cargo build --verbose
cargo doc --verbose
CARGO_TEST_EXTRA_FLAGS=""
if [ "$TRAVIS_RUST_VERSION" = "nightly" ]; then
CARGO_TEST_EXTRA_FLAGS=""
fi
cargo test --verbose ${CARGO_TEST_EXTRA_FLAGS}
RUST_REGEX_RANDOM_TEST=1 \
cargo test --release --verbose \
${CARGO_TEST_EXTRA_FLAGS} --test crates-regex
ci/run-shootout-test
cargo test --verbose --manifest-path regex-syntax/Cargo.toml
cargo doc --verbose --manifest-path regex-syntax/Cargo.toml
ci/test-regex-capi
if [ "$TRAVIS_RUST_VERSION" = "nightly" ]; then
cargo build --verbose --manifest-path regex-debug/Cargo.toml
for x in rust rust-bytes pcre1 onig; do
(cd bench && ./run $x --no-run --verbose)
done
fi