UNPKG

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