Gitlab test script fixes (#8573)
* Exclude /docs from modified files. * Ensure all references in the working tree are available * Remove duplicated line from test script
This commit is contained in:
parent
1b95af18ff
commit
938c3707fc
@ -7,8 +7,8 @@ if [[ "$CI_COMMIT_REF_NAME" = "master" || "$CI_COMMIT_REF_NAME" = "beta" || "$CI
|
|||||||
else
|
else
|
||||||
export GIT_COMPARE=master;
|
export GIT_COMPARE=master;
|
||||||
fi
|
fi
|
||||||
export RUST_FILES_MODIFIED="$(git --no-pager diff --name-only $GIT_COMPARE...$CI_COMMIT_SHA | grep -v -e ^\\. -e ^LICENSE -e ^README.md -e ^test.sh -e ^windows/ -e ^scripts/ -e ^mac/ -e ^nsis/ | wc -l)"
|
git fetch -a
|
||||||
echo "RUST_FILES_MODIFIED: $RUST_FILES_MODIFIED"
|
export RUST_FILES_MODIFIED="$(git --no-pager diff --name-only $GIT_COMPARE...$CI_COMMIT_SHA | grep -v -e ^\\. -e ^LICENSE -e ^README.md -e ^test.sh -e ^windows/ -e ^scripts/ -e ^mac/ -e ^nsis/ -e ^docs/ | wc -l)"
|
||||||
echo "RUST_FILES_MODIFIED: $RUST_FILES_MODIFIED"
|
echo "RUST_FILES_MODIFIED: $RUST_FILES_MODIFIED"
|
||||||
TEST_SWITCH=$1
|
TEST_SWITCH=$1
|
||||||
rust_test () {
|
rust_test () {
|
||||||
|
Loading…
Reference in New Issue
Block a user