1 | language: node_js
|
2 | node_js: "lts/*"
|
3 | cache:
|
4 | directories:
|
5 | - "$HOME/.npm"
|
6 | - "$HOME/travis/.sonar/cache"
|
7 | - "node_modules"
|
8 | - ".scannerwork"
|
9 |
|
10 | git:
|
11 | depth: 99999
|
12 |
|
13 | install:
|
14 | - npm ci
|
15 |
|
16 | addons:
|
17 | sonarcloud:
|
18 | organization: $SONAR_ORGANIZATION
|
19 | token:
|
20 | secure: $SONAR_TOKEN
|
21 |
|
22 | script:
|
23 | - npm run coverage
|
24 | - npm run build
|
25 | - npm run bundlesize
|
26 | - sonar-scanner
|
27 |
|
28 | deploy:
|
29 | skip_cleanup: true
|
30 | provider: npm
|
31 | email: $DEPLOY_EMAIL
|
32 | api_key: $NPM_TOKEN
|
33 | on:
|
34 | branch: master
|
35 | tags: true
|