-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
46 lines (43 loc) · 1.01 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
language: node_js
cache: npm
git:
depth: 1
jobs:
include:
- &test
stage: Test
node_js: "10"
before_install: npm install -g npm@latest
install: npm ci
script:
- npm audit --production
- set -o pipefail && npm audit --audit-level=high --parseable | awk -F $'\t' 'NF {print $2,"("$3") - "$4" - "$5" - "$6}' | awk '!visited[$0]++'
- npm test
- &test-compatibility
stage: Compatibility
node_js: "node"
os: linux
install:
- npm install
- npm update
script:
- npm test
- <<: *test-compatibility
node_js: "10"
- <<: *test-compatibility
node_js: "11"
- <<: *test-compatibility
node_js: "12"
- <<: *test-compatibility
node_js: "13"
- <<: *test
stage: Analyze
name: Sonarcloud
dist: trusty
addons:
sonarcloud:
organization: "getyoti"
if: type == pull_request OR branch = master
script:
- npm test
- sonar-scanner