Skip to content

Commit 197a4a6

Browse files
committed
setup travis and codecov
1 parent 33c5c9a commit 197a4a6

File tree

4 files changed

+31
-5
lines changed

4 files changed

+31
-5
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ npm-debug.log
66
build
77
node_modules
88
.git_backup/
9+
10+
*/**/coverage

.travis.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
language: node_js
2+
node_js:
3+
- 16
4+
5+
# installing required items for build
6+
install:
7+
- npm install -g yarn
8+
- yarn
9+
10+
# testing script
11+
script:
12+
- yarn test
13+
14+
# notify codecov and deploy to cloud
15+
after_success:
16+
bash <(curl -s https://codecov.io/bash);
17+
18+
branches:
19+
only:
20+
- master
21+
- main

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# React Folder Tree
2+
[![travis build](https://img.shields.io/travis/com/shunjizhan/react-folder-tree?logo=travis)](https://travis-ci.com/shunjizhan/react-folder-tree) [![codecov](https://codecov.io/gh/shunjizhan/react-folder-tree/branch/master/graph/badge.svg?token=26EEM3JIUY)](https://codecov.io/gh/shunjizhan/react-folder-tree) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/react-folder-tree?color=light%20green&label=zipped%20only&logo=webpack)
3+
[![npm](https://img.shields.io/npm/v/react-folder-tree?logo=npm)](https://www.npmjs.com/package/react-folder-tree) [![npm](https://img.shields.io/npm/dm/react-folder-tree?logo=DocuSign&color=blue)](https://www.npmjs.com/package/react-folder-tree) ![GitHub top language](https://img.shields.io/github/languages/top/shunjizhan/react-folder-tree?logo=react)
4+
25
A versatile and customizable react treeview library. Features:
36
✅ custom icons
47
✅ custom event handlers

jest.config.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
22
// The directory where Jest should output its coverage files
3-
// coverageDirectory: 'coverage',
3+
coverageDirectory: 'coverage',
44

55
// An array of regexp pattern strings used to skip coverage collection
66
coveragePathIgnorePatterns: [
@@ -21,10 +21,10 @@ module.exports = {
2121
},
2222

2323
// A list of reporter names that Jest uses when writing coverage reports
24-
coverageReporters: [
25-
'text',
26-
// "lcov",
27-
],
24+
// coverageReporters: [
25+
// 'text',
26+
// "lcov",
27+
// ],
2828

2929
// A set of global variables that need to be available in all test environments
3030
globals: {},

0 commit comments

Comments
 (0)