Adds travis and sonar config

This commit is contained in:
Aaron Louie 2020-02-08 11:21:20 -05:00
parent afc64a5414
commit c5c082c189
4 changed files with 28 additions and 1 deletions

8
.sonarcloud.properties Normal file
View File

@ -0,0 +1,8 @@
sonar.organization=sartography
sonar.projectKey=sartography-workflow-lib
sonar.host.url=https://sonarcloud.io
sonar.login=f586bac67c1fe26a18700fa0ecf535e9c8a49bee
sonar.javascript.lcov.reportPaths=projects/sartography-workflow-lib/coverage/sartography-workflow-lib/lcov.info
sonar.typescript.tsconfigPath=tsconfig.json
sonar.coverage.exclusions=**/*.mocks.ts, **/*.spec.ts, e2e/**, projects/sartography-workflow-lib/src/public-api.ts, projects/sartography-workflow-lib/src/test.ts, karma.conf.js
sonar.cpd.exclusions=**/*.mocks.ts, **/*.spec.ts, e2e/**, projects/sartography-workflow-lib/src/public-api.ts, projects/sartography-workflow-lib/src/test.ts, karma.conf.js

16
.travis.yml Normal file
View File

@ -0,0 +1,16 @@
sudo: required
dist: trusty
addons:
chrome: stable
sonarcloud:
organization: "sartography"
language: node_js
node_js:
- 12
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
install:
- npm install
script:
- npm run ci

View File

@ -6,11 +6,13 @@
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"test:coverage": "ng test --codeCoverage=true --watch=false --browsers=ChromeHeadless",
"lint": "ng lint",
"e2e": "ng e2e",
"patch-version": "cd projects/sartography-workflow-lib && npm version patch && cd ../..",
"republish": "ng build sartography-workflow-lib && cd dist/sartography-workflow-lib && npm publish && cd ../..",
"bump": "npm run patch-version && npm run republish"
"bump": "npm run patch-version && npm run republish",
"ci": "npm run lint && npm run test:coverage && npm run build"
},
"private": true,
"dependencies": {

1
sonar-project.properties Symbolic link
View File

@ -0,0 +1 @@
.sonarcloud.properties