-
Notifications
You must be signed in to change notification settings - Fork 1.2k
update contributing guide and ui-tests scripts #1668
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 9 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
e31ef72
update contributing guide and ui-tests scripts
mordamax 94d8382
Merge branch 'master' into mak-update-ui
mordamax d58fe32
Update CONTRIBUTING.md
mordamax a5fea03
combine into 1 scripts file
mordamax 6a5d584
Update update-ui-tests.sh
mordamax fa81315
+x
mordamax 742c030
Merge branch 'master' into mak-update-ui
mordamax 01d8b5e
remove orchestra
mordamax 9504289
Merge branch 'mak-update-ui' of https://github.com/paritytech/polkado…
mordamax 00b3b93
Update update-ui-tests.sh
mordamax 95b2eff
Update scripts/update-ui-tests.sh
mordamax 3abddc7
Update scripts/update-ui-tests.sh
mordamax File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| #!/usr/bin/env bash | ||
| # Script for updating the UI tests for a new rust stable version. | ||
| # Exit on error | ||
| set -e | ||
|
|
||
| # by default current rust stable will be used | ||
| RUSTUP_RUN="" | ||
| # check if we have a parameter | ||
| # ./substrate/.maintain/update-rust-stable.sh 1.70 | ||
| if [ "$#" -e 1 ]; then | ||
mordamax marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| # This will run all UI tests with the rust stable 1.70. | ||
| # The script requires that rustup is installed. | ||
| RUST_VERSION=$1 | ||
| RUSTUP_RUN=rustup run $RUST_VERSION | ||
|
|
||
| rustup install $RUST_VERSION | ||
| rustup component add rust-src --toolchain $RUST_VERSION | ||
|
|
||
|
|
||
| if ! command -v rustup &> /dev/null | ||
| then | ||
| echo "rustup needs to be installed" | ||
| exit | ||
| fi | ||
mordamax marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| fi | ||
|
|
||
| # Ensure we run the ui tests | ||
| export RUN_UI_TESTS=1 | ||
| # We don't need any wasm files for ui tests | ||
| export SKIP_WASM_BUILD=1 | ||
| # Let trybuild overwrite the .stderr files | ||
| export TRYBUILD=overwrite | ||
|
|
||
| # ./substrate | ||
| $RUSTUP_RUN cargo test -p sp-runtime-interface ui | ||
| $RUSTUP_RUN cargo test -p sp-api-test ui | ||
| $RUSTUP_RUN cargo test -p frame-election-provider-solution-type ui | ||
| $RUSTUP_RUN cargo test -p frame-support-test ui | ||
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.