This repository has been archived by the owner on Nov 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Simultaneous platform tests WIP #9557
Merged
Merged
Changes from 7 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
5ae07fe
look into commit changes
gabreal c183b0c
look into commit changes ii
gabreal 78f3594
all on test
gabreal eaf5c89
build only_releaseable_branches for platforms
gabreal a262276
allow failure for check during development
gabreal 56cc169
windows test typo
gabreal f80fec0
fix sh for windows
gabreal 5aff9f5
remove check stage again
gabreal e504724
debug macos platform
gabreal 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 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 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,34 @@ | ||
#!/bin/sh | ||
# | ||
# script returns 0 if there are no changes to the rust codebase | ||
# 1 otherwise | ||
|
||
set -e # fail on any error | ||
set -u # treat unset variables as error | ||
|
||
set -x # full command output for development | ||
git log --graph --oneline --all --decorate=short -n 10 | ||
|
||
|
||
case $CI_COMMIT_REF_NAME in | ||
(master|beta|stable) | ||
export GIT_COMPARE=$CI_COMMIT_REF_NAME~ | ||
;; | ||
(*) | ||
export GIT_COMPARE=master | ||
;; | ||
esac | ||
|
||
|
||
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)" | ||
echo "RUST_FILES_MODIFIED: $RUST_FILES_MODIFIED" | ||
|
||
|
||
if [ "${RUST_FILES_MODIFIED}" = "0" ] | ||
then | ||
echo "__________Skipping Rust tests since no Rust files modified__________"; | ||
exit 1 | ||
else | ||
echo "__________Rust files modified__________"; | ||
fi | ||
|
This file contains 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a nicer way to do this? "no files modified" is a valid result and should not result in a failing job
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unfortunately not. will only become very unbeautiful. so i removed the check stage again. but builds take way to long IMHO before switching to it. Also there are errors in the stage within the CI as well as Rust code that does not seem to compile properly on all platforms.