Changed build steps so that mutation testing a docker build are only run on pull request builds

This commit is contained in:
Alejandro Celaya 2020-03-19 20:26:35 +01:00
parent 18d125430d
commit 03806abda0

View file

@ -20,8 +20,8 @@ before_script:
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:ci ; fi
- if [[ $TRAVIS_PULL_REQUEST != 'false' ]]; then docker build -t shlink-web-client:test . ; fi
- if [[ $TRAVIS_PULL_REQUEST != 'false' ]]; then npm run mutate:ci ; fi
after_success:
- node_modules/.bin/ocular coverage/clover.xml