1 | language: node_js
|
2 | dist: xenial
|
3 | notifications:
|
4 | email:
|
5 | recipients:
|
6 | - middleware@hexonet.net
|
7 | on_success: never
|
8 | on_failure: always
|
9 | node_js:
|
10 | - "12"
|
11 | - "11"
|
12 | - "10"
|
13 | # Trigger a push build on master and dependabot branches + PRs build on every branches
|
14 | # Avoid double build on PRs (See https://github.com/travis-ci/travis-ci/issues/1147)
|
15 | branches:
|
16 | only:
|
17 | - master
|
18 | - /^dependabot.*$/
|
19 | before_install:
|
20 | - npm prune
|
21 | install:
|
22 | - travis_retry npm i
|
23 | before_script:
|
24 | - npm run build
|
25 | - npm run lint
|
26 | script:
|
27 | - npm run test
|
28 | jobs:
|
29 | include:
|
30 | - stage: release
|
31 | node_js: lts/*
|
32 | script:
|
33 | - npx semantic-release
|