-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
53 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"presets": ["env"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# Shell script to compute code coverage even after the Babel transforms have | ||
# been applied. | ||
|
||
# Clear previous coverage. | ||
rm -rf coverage | ||
|
||
# Generate test coverage based on however `npm test` performs the tests. | ||
nyc --reporter=json npm test | ||
|
||
# Move generated JSON file so it can be remapped and won't confuse Istanbul | ||
# later. | ||
mv coverage/coverage-final.json coverage/coverage.json | ||
|
||
# Rewrite the coverage file taking the Babel source maps into account. | ||
remap-istanbul -i coverage/coverage.json -o coverage/coverage.json | ||
|
||
# Generate an lcov.info file and an HTML report, and output a text report. | ||
istanbul report lcov text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ | |
/node_modules/ | ||
/release/ | ||
/.idea/ | ||
/CLONED/ | ||
/coverage/ | ||
/.nyc_output/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
/src/ | ||
/src/ | ||
/coverage/ | ||
/.nyc_output/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
language: node_js | ||
|
||
node_js: | ||
- 5.7 | ||
|
||
cache: | ||
directories: | ||
- node_modules | ||
|
||
before_script: | ||
- git config --global user.name 'Travis-ci' | ||
- git config --global user.email 'josetelesmaciel@gmail.com' | ||
|
||
script: npm run coverage & npm run coverage-to-codacy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters