Skip to content

Commit

Permalink
Merge pull request #175 from loic425/features/do-not-run-infection-wh…
Browse files Browse the repository at this point in the history
…en-nothing-has-changed

Do not run infection on all files when nothing has changed
  • Loading branch information
loic425 committed Apr 29, 2019
2 parents 6c34125 + d870ee7 commit ede4748
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions etc/travis/suites/application/script/test-infection
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ else
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 "," -);

if [[ "${CHANGED_FILES}" == "" ]]; then
CHANGED_FILES=nothing;
fi

INFECTION_FILTER="--filter=${CHANGED_FILES} --ignore-msi-with-no-mutations";

echo "CHANGED_FILES=$CHANGED_FILES";
Expand Down

0 comments on commit ede4748

Please sign in to comment.