-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add basic tests & coverage support - Use public npm for h2-auto-push - Package updates - CircleCI integration - License check
- Loading branch information
Showing
9 changed files
with
6,153 additions
and
572 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,65 @@ | ||
--- | ||
release_tags: &release_tags | ||
tags: | ||
only: /^v\d+(\.\d+){2}(-.*)?$/ | ||
|
||
# "Include" for unit tests definition. | ||
unit_tests: &unit_tests | ||
steps: | ||
- checkout | ||
- run: | ||
name: Install modules and dependencies. | ||
command: npm install | ||
- run: | ||
name: Run unit tests. | ||
command: npm test | ||
- run: | ||
name: Submit coverage data to codecov. | ||
command: npm run codecov | ||
when: always | ||
|
||
version: 2.0 | ||
workflows: | ||
version: 2 | ||
tests: | ||
jobs: | ||
- node8: | ||
filters: *release_tags | ||
- node9: | ||
filters: *release_tags | ||
- publish_npm: | ||
requires: | ||
- node8 | ||
- node9 | ||
filters: | ||
branches: | ||
ignore: /.*/ | ||
<<: *release_tags | ||
|
||
jobs: | ||
node8: | ||
docker: | ||
- image: node:8 | ||
user: node | ||
<<: *unit_tests | ||
node9: | ||
docker: | ||
- image: node:9 | ||
user: node | ||
<<: *unit_tests | ||
|
||
publish_npm: | ||
docker: | ||
- image: node:8 | ||
user: node | ||
steps: | ||
- checkout | ||
- run: | ||
name: Set NPM authentication. | ||
command: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc | ||
- run: | ||
name: Install modules and dependencies. | ||
command: npm install | ||
- run: | ||
name: Publish the module to npm. | ||
command: npm publish |
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,3 +1,5 @@ | ||
/.nyc_output | ||
/.vscode | ||
/build | ||
/coverage | ||
/node_modules | ||
/.vscode |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"packageWhitelist": [ | ||
"bloomfilter" // Has LICENSE (BSD-3-Clause) but not listed in package.json | ||
] | ||
} |
Oops, something went wrong.