Skip to content
This repository was archived by the owner on Mar 28, 2022. It is now read-only.

Commit ba38846

Browse files
committed
Add travis build
1 parent 3c16979 commit ba38846

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.travis.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
language: node_js
2+
3+
node_js:
4+
- "10"
5+
6+
cache:
7+
directories:
8+
- "node_modules"
9+
- "$HOME/.sonar/cache"
10+
11+
addons:
12+
sonarcloud:
13+
organization: "javierbrea"
14+
token:
15+
secure: "$SONAR_TOKEN"
16+
branch:
17+
name: "$TRAVIS_CURRENT_BRANCH"
18+
19+
script:
20+
- npm run lint
21+
- npm run test-ci
22+
- npm run coveralls
23+
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then sonar-scanner; fi'
24+
25+
deploy:
26+
provider: npm
27+
email: "devops@xbyorange.com"
28+
api_key: "$NPM_TOKEN"
29+
on:
30+
tags: true
31+
skip_cleanup: true

0 commit comments

Comments
 (0)