Fixed style files being excluded when finding what files to mutate

This commit is contained in:
Alejandro Celaya 2019-09-22 11:35:52 +02:00
parent 959ce42137
commit ab0976981b

View file

@ -15,7 +15,7 @@ install:
before_script: before_script:
- echo "Building commit range ${TRAVIS_COMMIT_RANGE}" - echo "Building commit range ${TRAVIS_COMMIT_RANGE}"
- export MUTATION_FILES=$(git diff ${TRAVIS_COMMIT_RANGE:-origin/master} --name-only | grep src/ | paste -sd ",") - export MUTATION_FILES=$(git diff ${TRAVIS_COMMIT_RANGE:-origin/master} --name-only | grep -E 'src\/(.*).(js|ts|jsx|tsx)' | paste -sd ",")
script: script:
- npm run lint - npm run lint