diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 37b72b6c77e..ed3a3675a12 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -611,11 +611,12 @@ test-rust-stable: image: parity/rust:gitlab-ci before_script: - git submodule update --init --recursive - - export RUST_FILES_MODIFIED=$(git --no-pager diff --name-only $CI_BUILD_REF^ $CI_BUILD_REF | grep -v -e ^js -e ^\\. -e ^LICENSE -e ^README.md -e ^appveyor.yml -e ^test.sh -e ^windows/ -e ^scripts/ -e^mac/ -e ^nsis/ | wc -l) + - export RUST_FILES_MODIFIED=$(git --no-pager diff --name-only $CI_BUILD_REF^ $CI_BUILD_REF | grep -v -e ^js -e ^\\. -e ^LICENSE -e ^README.md -e ^test.sh -e ^windows/ -e ^scripts/ -e^mac/ -e ^nsis/ | wc -l) script: - rustup show - export RUST_BACKTRACE=1 - if [ $RUST_FILES_MODIFIED -eq 0 ]; then echo "Skipping Rust tests since no Rust files modified."; else ./test.sh $CARGOFLAGS; fi + - if [ "$CI_BUILD_REF_NAME" == "nightly" ]; then sh scripts/aura-test.sh; fi tags: - rust - rust-stable diff --git a/scripts/aura-test.sh b/scripts/aura-test.sh new file mode 100755 index 00000000000..bb152beba79 --- /dev/null +++ b/scripts/aura-test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +cargo build -j $(nproc) --release --features final $CARGOFLAGS +git clone https://github.com/paritytech/parity-import-tests +cp target/release/parity parity-import-tests/aura/parity +cd parity-import-tests/aura +echo "Start Aura test" +parity import blocks.rlp --chain chain.json +parity restore snap --chain chain.json +echo "Aura test complete"