hurl/ci/build_and_test.sh
jcamiel 309f7de1c6 Test build are done with --release and --locked.
Hurl and curl version are outputed juste after build.
2022-03-22 07:56:23 +01:00

27 lines
555 B
Bash
Executable File

#!/bin/bash
set -e
echo "----- build -----"
# Directive for ShellCheck SC1090:
# shellcheck source=/dev/null
source ~/.cargo/env
cargo build --release --verbose --locked
target/release/hurl --version
curl --version
ci/test_prerequisites.sh
# current bug with curl to be fixed
# https://github.com/curl/curl/issues/8559
if test -f /etc/arch-release; then
exit 0
fi
echo "----- unit tests -----"
cargo test --features strict --tests
echo "----- integration tests -----"
export PATH="$PWD/target/debug:$PATH"
cd integration || exit
./integration.py