c9cee8fd52
* scripts: remove rpm packages * scripts: remove deb packages * scripts: remove unused zip archives * scripts: remove unused ssl references * scripts: remove debian and centos pipelines * scripts: rename ubuntu to generic linux * scripts: restore archives used in gitlab artifacts * scripts: init submodules for full test suite * scripts: do not publish master builds, only nightly, stable, beta
61 lines
1.1 KiB
Bash
Executable File
61 lines
1.1 KiB
Bash
Executable File
#!/bin/sh
|
|
# Running Parity Full Test Suite
|
|
|
|
FEATURES="json-tests"
|
|
OPTIONS="--release"
|
|
VALIDATE=1
|
|
|
|
case $1 in
|
|
--no-json)
|
|
FEATURES="ipc"
|
|
shift # past argument=value
|
|
;;
|
|
--no-release)
|
|
OPTIONS=""
|
|
shift
|
|
;;
|
|
--no-validate)
|
|
VALIDATE=0
|
|
shift
|
|
;;
|
|
--no-run)
|
|
OPTIONS="--no-run"
|
|
shift
|
|
;;
|
|
*)
|
|
# unknown option
|
|
;;
|
|
esac
|
|
|
|
set -e
|
|
|
|
if [ "$VALIDATE" -eq "1" ]; then
|
|
# Validate --no-default-features build
|
|
echo "________Validate build________"
|
|
cargo check --no-default-features
|
|
cargo check --manifest-path util/io/Cargo.toml --no-default-features
|
|
cargo check --manifest-path util/io/Cargo.toml --features "mio"
|
|
|
|
# Validate chainspecs
|
|
echo "________Validate chainspecs________"
|
|
./scripts/validate_chainspecs.sh
|
|
fi
|
|
|
|
|
|
# Running the C example
|
|
echo "________Running the C example________"
|
|
cd parity-clib-example && \
|
|
mkdir -p build && \
|
|
cd build && \
|
|
cmake .. && \
|
|
make && \
|
|
./parity-example && \
|
|
cd .. && \
|
|
rm -rf build && \
|
|
cd ..
|
|
|
|
# Running tests
|
|
echo "________Running Parity Full Test Suite________"
|
|
git submodule update --init --recursive
|
|
cargo test -j 8 $OPTIONS --features "$FEATURES" --all $1
|