Skip to content

Commit

Permalink
Tweak min-msi check (#854)
Browse files Browse the repository at this point in the history
Only check the new files instead of new and modified
  • Loading branch information
theofidry committed Nov 28, 2019
1 parent 73bb17a commit a995d71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .ci/travis-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function get-infection-pr-flags() {
git remote set-branches --add origin $TRAVIS_BRANCH;
git fetch;

CHANGED_FILES=$(git diff origin/$TRAVIS_BRANCH --diff-filter=AM --name-only | grep src/ | paste -sd "," -);
CHANGED_FILES=$(git diff origin/$TRAVIS_BRANCH --diff-filter=A --name-only | grep src/ | paste -sd "," -);
MIN_MSI=$(($(grep -o 'min-msi=[0-9]*' .travis.yml | head | cut -f2 -d=) + 1))
>&2 echo "Assumed minimal MSI: $MIN_MSI%"

Expand Down

0 comments on commit a995d71

Please sign in to comment.