shlink-web-client/.travis.yml

43 lines
865 B
YAML
Raw Normal View History

dist: bionic
2018-08-04 11:29:55 +03:00
language: node_js
branches:
only:
- /.*/
cache:
directories:
- node_modules
node_js:
2020-10-31 13:58:07 +03:00
- '14.15.0'
jobs:
fast_finish: true
allow_failures:
- name: 'Mutation tests'
include:
- name: 'Lint'
install: npm ci
script: npm run lint
- name: 'Unit tests'
install: npm ci
script: npm run test:ci
after_success:
- node_modules/.bin/ocular coverage/clover.xml
- name: 'Mutation tests'
install: npm ci
before_script:
- echo "Building commit range ${TRAVIS_COMMIT_RANGE}"
- export MUTATION_FILES=$(git diff ${TRAVIS_COMMIT_RANGE:-origin/main} --name-only | grep -E 'src\/(.*).(ts|tsx)$' | paste -sd ",")
script: npm run mutate:ci
- name: 'Build docker image'
services:
- docker
script: docker build -t shlink-web-client:test .