UNPKG

650 BYAMLView Raw
1language: node_js
2dist: xenial
3notifications:
4 email:
5 recipients:
6 - middleware@hexonet.net
7 on_success: never
8 on_failure: always
9node_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)
15branches:
16 only:
17 - master
18 - /^dependabot.*$/
19before_install:
20 - npm prune
21install:
22 - travis_retry npm i
23before_script:
24 - npm run build
25 - npm run lint
26script:
27 - npm run test
28jobs:
29 include:
30 - stage: release
31 node_js: lts/*
32 script:
33 - npx semantic-release