1 | sudo: false
|
2 | dist: bionic
|
3 | language: node_js
|
4 | cache:
|
5 | directories:
|
6 | - node_modules
|
7 | notifications:
|
8 | email: false
|
9 | slack: snyk:5hknLE8muATMpE75TgeVFZzz
|
10 | node_js:
|
11 | - 8
|
12 | - 10
|
13 | - 12
|
14 | install:
|
15 | - npm install
|
16 | script:
|
17 | - npm test
|
18 | jobs:
|
19 | include:
|
20 | - stage: Release
|
21 | node_js: "10"
|
22 | script:
|
23 | - test "${TRAVIS_PULL_REQUEST}" != "false" || npx semantic-release
|
24 | branches:
|
25 | only:
|
26 | - "master"
|