-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #127 from auth0/add-ci
Add CircleCI build and generate coverage
- Loading branch information
Showing
6 changed files
with
1,275 additions
and
13 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,34 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
docker: | ||
- image: circleci/node:10 | ||
environment: | ||
LANG: en_US.UTF-8 | ||
steps: | ||
- checkout | ||
- run: | ||
name: Update NPM version | ||
command: sudo npm install -g npm@latest | ||
- restore-cache: | ||
name: Restore NPM Package Cache | ||
keys: | ||
- npm-packages-{{ checksum "package-lock.json" }} | ||
- npm-packages- | ||
- run: | ||
name: Install Dependencies | ||
command: npm install | ||
- save-cache: | ||
name: Save NPM Package Cache | ||
key: npm-packages-{{ checksum "package-lock.json" }} | ||
paths: | ||
- ./node_modules | ||
- run: | ||
name: Run Tests | ||
command: npm run test:ci | ||
- store_artifacts: | ||
path: ./coverage/lcov-report | ||
- run: | ||
name: Upload Coverage | ||
when: on_success | ||
command: bash <(curl -s https://codecov.io/bash) |
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
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,22 @@ | ||
coverage: | ||
precision: 2 | ||
round: down | ||
range: "80...100" | ||
status: | ||
project: | ||
default: | ||
enabled: true | ||
target: auto | ||
threshold: 1% | ||
if_no_uploads: error | ||
patch: | ||
default: | ||
enabled: true | ||
target: 80% | ||
threshold: 30% | ||
if_no_uploads: error | ||
changes: | ||
default: | ||
enabled: true | ||
if_no_uploads: error | ||
comment: false |
Oops, something went wrong.