mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-23 09:30:31 +03:00
Added lines between job definitions in travis config
This commit is contained in:
parent
b7a0be3872
commit
faf9554286
1 changed files with 5 additions and 0 deletions
|
@ -18,24 +18,29 @@ jobs:
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- name: 'Mutation tests'
|
- name: 'Mutation tests'
|
||||||
include:
|
include:
|
||||||
|
|
||||||
- name: 'Lint'
|
- name: 'Lint'
|
||||||
install: npm ci
|
install: npm ci
|
||||||
script: npm run lint
|
script: npm run lint
|
||||||
|
|
||||||
- name: 'Unit tests'
|
- name: 'Unit tests'
|
||||||
install: npm ci
|
install: npm ci
|
||||||
script: npm run test:ci
|
script: npm run test:ci
|
||||||
after_success:
|
after_success:
|
||||||
- node_modules/.bin/ocular coverage/clover.xml
|
- node_modules/.bin/ocular coverage/clover.xml
|
||||||
|
|
||||||
- name: 'Mutation tests'
|
- name: 'Mutation tests'
|
||||||
install: npm ci
|
install: npm ci
|
||||||
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/main} --name-only | grep -E 'src\/(.*).(ts|tsx)$' | paste -sd ",")
|
- export MUTATION_FILES=$(git diff ${TRAVIS_COMMIT_RANGE:-origin/main} --name-only | grep -E 'src\/(.*).(ts|tsx)$' | paste -sd ",")
|
||||||
script: npm run mutate:ci
|
script: npm run mutate:ci
|
||||||
|
|
||||||
- name: 'Build docker image'
|
- name: 'Build docker image'
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
script: docker build -t shlink-web-client:test .
|
script: docker build -t shlink-web-client:test .
|
||||||
|
|
||||||
- name: 'Publish release'
|
- name: 'Publish release'
|
||||||
if: tag IS present
|
if: tag IS present
|
||||||
before_deploy: npm run build ${TRAVIS_TAG#?} # Before deploying, build dist file for current travis tag
|
before_deploy: npm run build ${TRAVIS_TAG#?} # Before deploying, build dist file for current travis tag
|
||||||
|
|
Loading…
Reference in a new issue