Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Commit

Permalink
[DevOps][TypeScript] Update YAML file in Botskills (#1491)
Browse files Browse the repository at this point in the history
* Update botskills yaml

* Update package-lock.json and package.json
  • Loading branch information
DiegoCardozo94 authored and darrenj committed Jun 6, 2019
1 parent a7fe602 commit 0732e03
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 3 deletions.
67 changes: 67 additions & 0 deletions lib/typescript/botskills/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/typescript/botskills/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"@types/request-promise-native": "^1.0.15",
"@types/semver": "^5.5.0",
"mocha": "^6.1.4",
"mocha-junit-reporter": "^1.22.0",
"nyc": "^14.1.1",
"sinon": "^7.3.2",
"tslint": "^5.12.1",
Expand Down
20 changes: 17 additions & 3 deletions yaml/botskills.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,38 @@ pool:

steps:
- task: Npm@1
displayName: install
displayName: 'npm install'
inputs:
workingDir: lib/typescript/botskills
verbose: false

- task: Npm@1
displayName: build
displayName: 'npm run build'
inputs:
command: custom
workingDir: lib/typescript/botskills
verbose: false
customCommand: 'run build'

- task: Npm@1
displayName: 'tests with coverage'
displayName: 'npm test - coverage'
inputs:
command: custom
workingDir: lib/typescript/botskills
verbose: false
customCommand: 'run coverage'

- task: PublishTestResults@2
displayName: 'publish test results'
inputs:
testResultsFiles: 'test-results.xml'
searchFolder: 'lib/typescript/botskills'
failTaskOnFailedTests: true

- task: PublishCodeCoverageResults@1
displayName: 'publish code coverage'
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: 'lib/typescript/botskills/coverage/cobertura-coverage.xml'
reportDirectory: 'lib/typescript/botskills/coverage/'

0 comments on commit 0732e03

Please sign in to comment.