Skip to content

Commit 364a078

Browse files
authored
add more CI tools
2 parents ebac36a + cef0c5c commit 364a078

File tree

5 files changed

+410
-8
lines changed

5 files changed

+410
-8
lines changed

.travis.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,19 @@ cache:
1414
- node_modules
1515
install:
1616
- npm install
17+
18+
before_script:
19+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
20+
- chmod +x ./cc-test-reporter
21+
- ./cc-test-reporter before-build
1722
script:
23+
- if [[ ${BUNDLE_ANALYZER_TOKEN} != "" ]]; then npm install --no-save @bundle-analyzer/webpack-plugin; fi
1824
- npm run test:unit -- --coverage
1925
- npm install coveralls
2026
- cat ./coverage/lcov.info | coveralls
2127
- npm run test:e2e
22-
#- git checkout dev
23-
#- git rebase master
24-
#- git push
28+
after_script:
29+
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
2530

2631
before_deploy:
2732
- export TRAVIS_TAG=${TRAVIS_TAG:-$(node -p "require('./package.json').version")-$(date +'%Y.%m.%d')-$(git log --format=%h -1)}

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
[![Master Build](https://travis-ci.com/eidng8/vue-tree.svg?branch=master)](https://travis-ci.com/eidng8/vue-tree)
44
[![Master Coverage](https://coveralls.io/repos/github/eidng8/vue-tree/badge.svg?branch=master)](https://coveralls.io/github/eidng8/vue-tree?branch=master)
5+
[![Known Vulnerabilities](https://snyk.io/test/github/eidng8/vue-tree/badge.svg?targetFile=package.json)](https://snyk.io/test/github/eidng8/vue-tree?targetFile=package.json)
56

67
A Vue.js tree view component with stable DOM tree. By stable, it means the
78
DOM structure will not change once it is rendered.

0 commit comments

Comments
 (0)