-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
72 lines (69 loc) · 1.6 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
language: node_js
cache: npm
git:
depth: 1
jobs:
include:
- &test
stage: Test
node_js: "14"
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: "14"
- <<: *test-compatibility
node_js: "16"
- <<: *test-compatibility
node_js: "18"
- &test-compatibility-osx
<<: *test-compatibility
os: osx
- <<: *test-compatibility-osx
node_js: "14"
- <<: *test-compatibility-osx
node_js: "16"
- <<: *test-compatibility-osx
node_js: "18"
- stage: Lint Examples
name: AML Check
node_js: "14"
script:
- cd ./examples/aml-check
- npm update
- npm run lint
- name: Profile
node_js: "14"
script:
- cd ./examples/profile
- npm update
- npm run lint
- name: IDV
node_js: "14"
script:
- cd ./examples/idv
- npm install
- npm run lint
- <<: *test
stage: Analyze
name: Sonarcloud
dist: trusty
addons:
sonarcloud:
organization: "getyoti"
if: type == pull_request OR branch = master
script:
- npm test
- sonar-scanner