Updated travis to run mutations on changed files only

This commit is contained in:
Alejandro Celaya
2019-04-22 10:04:41 +02:00
parent b83c0e0aba
commit 32f171d861
4 changed files with 14 additions and 11 deletions

View File

@@ -13,11 +13,14 @@ services:
install:
- npm ci
before_script:
- export MUTATION_FILES=$(git diff ${TRAVIS_COMMIT_RANGE:-origin/master} --name-only | grep src/ | paste -sd ",")
script:
- npm run lint
- npm run test:ci
- if [[ -z $TRAVIS_TAG ]]; then docker build -t shlink-web-client:test . ; fi
- if [[ -z $TRAVIS_TAG ]]; then npm run mutate ; fi
- if [[ -z $TRAVIS_TAG ]]; then npm run mutate:ci ; fi
after_success:
- node_modules/.bin/ocular coverage/clover.xml