Skip to content

Commit 8631596

Browse files
JimiCrobertohuertasm
authored andcommitted
Add support for Codecov. (vscode-icons#813)
* Add support for Codecov. * Update codecov to v2.0.1. * Update dependencies.
1 parent eda8730 commit 8631596

File tree

5 files changed

+713
-75
lines changed

5 files changed

+713
-75
lines changed

.gitignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
node_modules
22
out
33
examples
4-
npm-debug.*
5-
.vscode-test/**
4+
coverage
5+
.vscode-test
6+
.nyc_output
67
.DS_Store
8+
npm-debug.*
79
*.vsix
10+
*.lcov

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ os:
33
- linux
44
- osx
55
node_js:
6-
- "node"
7-
- "6"
6+
- node
7+
- 6
88
cache: yarn
99
script: npm run build
10+
after_success:
11+
- codecov
1012
# See this if we need to test the extension via vscode:
1113
# https://code.visualstudio.com/Docs/extensions/testing-extensions#_running-tests-automatically-on-travis-ci-build-machines

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
[![Build Status](https://travis-ci.org/vscode-icons/vscode-icons.svg?branch=master)](https://travis-ci.org/vscode-icons/vscode-icons)
77
[![Dependencies Status](https://david-dm.org/vscode-icons/vscode-icons/status.svg)](https://david-dm.org/vscode-icons/vscode-icons)
88
[![DevDependencies Status](https://david-dm.org/vscode-icons/vscode-icons/dev-status.svg)](https://david-dm.org/vscode-icons/vscode-icons?type=dev)
9+
[![codecov](https://codecov.io/gh/vscode-icons/vscode-icons/branch/master/graph/badge.svg)](https://codecov.io/gh/vscode-icons/vscode-icons)
910
[![Known Vulnerabilities](https://snyk.io/test/github/vscode-icons/vscode-icons/badge.svg)](https://snyk.io/test/github/vscode-icons/vscode-icons)
1011

1112
[![bitHound Overall Score](https://www.bithound.io/github/vscode-icons/vscode-icons/badges/score.svg)](https://www.bithound.io/github/vscode-icons/vscode-icons)

package.json

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"email": "[email protected]"
2020
},
2121
"engines": {
22-
"vscode": "^1.5.0"
22+
"vscode": "^1.6.0",
23+
"node": ">6.0.0"
2324
},
2425
"categories": [
2526
"Other",
@@ -178,32 +179,36 @@
178179
}
179180
},
180181
"scripts": {
182+
"postinstall": "node ./node_modules/vscode/bin/install",
181183
"prebuild": "npm run lint && npm run test",
182184
"build": "node ./out/src/icon-manifest/build.js",
183-
"example": "node ./out/src/example/example.js ",
184-
"pretest": "npm run compile",
185-
"test": "mocha ./out/test --recursive",
186-
"lint": "tslint --project tsconfig.json",
185+
"pretest": "rimraf ./.nyc_output ./coverage && npm run compile",
186+
"test": "nyc -c -x '' mocha ./out/test --recursive",
187+
"posttest": "nyc report -r lcov",
187188
"test:vs": "node ./node_modules/vscode/bin/test",
188-
"vscode:prepublish": "rimraf ./out && npm run build",
189-
"compile:w": "rimraf ./out && tsc -w",
190-
"compile": "rimraf ./out && tsc",
191-
"postinstall": "node ./node_modules/vscode/bin/install",
189+
"vscode:prepublish": "npm run precompile && npm run build",
190+
"precompile": "rimraf ./out",
191+
"compile": "tsc",
192+
"compile:w": "npm run compile -- -w",
193+
"lint": "tslint --project tsconfig.json",
194+
"example": "node ./out/src/example/example.js ",
192195
"analysis": "bithound check [email protected]:vscode-icons/vscode-icons.git"
193196
},
194197
"devDependencies": {
195198
"@types/chai": "^3.4.35",
196199
"@types/chai-as-promised": "^0.0.30",
197200
"@types/lodash": "^4.14.55",
198-
"@types/mocha": "^2.2.39",
201+
"@types/mocha": "^2.2.40",
199202
"@types/node": "^7.0.8",
200203
"@types/sinon": "^1.16.35",
201-
"bithound": "1.7.0",
204+
"bithound": "^1.7.0",
202205
"chai": "^3.5.0",
203206
"chai-as-promised": "^6.0.0",
207+
"codecov": "^2.0.1",
204208
"mocha": "^3.2.0",
209+
"nyc": "^10.1.2",
205210
"rimraf": "^2.6.1",
206-
"sinon": "^1.17.7",
211+
"sinon": "^2.0.0",
207212
"tslint": "^4.5.1",
208213
"typescript": "^2.2.1",
209214
"vscode": "^1.1.0"

0 commit comments

Comments
 (0)