Skip to content
Snippets Groups Projects
Commit 98abf6ad authored by Lars Trieloff's avatar Lars Trieloff Committed by GitHub Enterprise
Browse files

Merge pull request #38 from maj/ci-pipeline

CI Integration
parents fbdfaf4c 7deb8ad0
Branches
Tags
No related merge requests found
pipeline {
agent any
environment {
PATH = "/apps/java/latest/bin:/apps/node/node-v6.11.4-linux-x64/bin:$PATH"
}
stages {
stage('Show Environment') {
steps {
sh "env"
sh "node --version"
sh "npm --version"
}
}
stage('Install Dependencies') {
steps {
sh "npm install"
}
}
stage('Test') {
steps {
sh "npm test"
}
}
}
}
......@@ -67,18 +67,24 @@ Ensure you have all the dependencies installed via `npm install`, then run:
npm test
```
### Style Guide / Linting
### CI
This project uses [eslint](https://eslint.org) to enforce JavaScript coding style. To run the linter:
> https://devexp.ci.corp.adobe.com:12001/blue/organizations/jenkins/jsonschema2md/pr
```bash
npm run lint
```
Continuous integration runs on the [Developer Experience's Jenkins instance](https://devexp.ci.corp.adobe.com:12001) under the [jsonschema2md job](https://devexp.ci.corp.adobe.com:12001/blue/organizations/jenkins/jsonschema2md/pr). All pull requests automatically trigger a job that runs the [tests](#tests) by executing the [`Jenkinsfile`](Jenkinsfile).
### Code Coverage
You can run `npm run cover` to get a code coverage report, that is, a sense of how much of the project's code is "covered" by the test suite.
## Style Guide / Linting
This project uses [eslint](https://eslint.org) to enforce JavaScript coding style. To run the linter:
```bash
npm run lint
```
## TODOs
* JSON Schema validation:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment