diff --git a/Jenkinsfile b/Jenkinsfile index 6530bed..5bd9d3d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -20,6 +20,12 @@ pipeline { sh('git remote set-url origin \$(echo $GIT_URL | sed -e "s^//^//$GIT_CREDENTIALS@^")') } } + stage('Checks') { + steps { + sh 'npm run test' + } + } + stage('Set Version') { when { allOf { diff --git a/package.json b/package.json index f95e787..7a4381e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@nclazz/apicli", - "version": "1.0.2", + "version": "1.1.0", "description": "Commandline interface for generating and linting api-specs.", "main": "./src/index.js", "bin": "./src/index.js", @@ -19,7 +19,7 @@ "author": "Niclas Thobaben", "license": "MIT", "dependencies": { - "args-parser": "1.2.0", + "args-parser": "1.3.0", "chai": "^4.3.4", "mocha": "^9.0.2", "npm-cli-login": "0.1.1", diff --git a/src/index.js b/src/index.js index 2669fd8..40937f8 100644 --- a/src/index.js +++ b/src/index.js @@ -13,6 +13,7 @@ if(!command) { } logging.init(args.v ? 1 : args.vv ? 2 : 0) +console.debug('Arguments:', args) try { command.run(args)