Examples for using ncm-ci with various CI systems
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
images
.gitignore
.travis.yml
README.md
appveyor.yml
package-lock.json
package.json

README.md

ncm-ci-example

Build Status Build status CircleCI

This project is set up with NCM CI on various CICD systems to demonstrate how it will pass or fail your builds depending on the state of your node_modules dependency tree.

CICD

The following CICD systems have been set up:

System OS Config Passing build Failing build
Travis Linux .travis.yml Build #8 Build #11
AppVeyor Windows appveyor.yml 1.0.7 1.0.10
CircleCI Linux .circleci/config.yml #4 #6

Remember that you will need to set NCM_TOKEN=xxx as an environment variable, which should not be made visible to the public. For instruction on obtaining a token, read the docs.

Output

In case there are problematic dependencies in your tree, ncm-ci will list them out:

ci fail

Fix those dependencies and you'll see All good!

ci pass

Pull requests

This project's #master branch passes ncm-ci, however an example Pull request #1 has been set up to demonstrate how ncm-ci will fail your build when vulnerable or noncompliant dependencies are introduced.

pull request screenshot