-
-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0ca2cd7
commit 308987e
Showing
2 changed files
with
82 additions
and
0 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,48 @@ | ||
name: 1.0$(rev:.r) | ||
trigger: | ||
branches: | ||
include: | ||
- master | ||
pr: none | ||
|
||
pool: | ||
name: Hosted Ubuntu 1604 | ||
demands: npm | ||
|
||
steps: | ||
# Authenticate | ||
- task: npmAuthenticate@0 | ||
displayName: NPM Auth | ||
inputs: | ||
workingFile: .npmrc | ||
customEndpoint: 'Vishnu Sankar' | ||
|
||
# Build & Test | ||
- bash: | | ||
yarn install | ||
yarn build:tsc | ||
yarn build:ywc | ||
yarn test | ||
yarn set-version | ||
displayName: Build & Test | ||
# Test Result | ||
- task: PublishTestResults@2 | ||
displayName: Publish Test Result | ||
inputs: | ||
testResultsFormat: 'JUnit' | ||
testResultsFiles: 'junit.xml' | ||
failTaskOnFailedTests: true | ||
|
||
# Coverage Result | ||
- task: PublishCodeCoverageResults@1 | ||
displayName: Publish Coverage Result | ||
inputs: | ||
codeCoverageTool: 'Cobertura' | ||
summaryFileLocation: 'coverage/cobertura-coverage.xml' | ||
failIfCoverageEmpty: true | ||
|
||
# Publish Packages | ||
- bash: | | ||
yarn ywc publish | ||
displayName: Publish Packages |
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 @@ | ||
name: 1.0$(rev:.r) | ||
trigger: none | ||
pr: | ||
branches: | ||
include: | ||
- master | ||
|
||
pool: | ||
name: Hosted Ubuntu 1604 | ||
|
||
steps: | ||
# Install, Build & Test | ||
- bash: | | ||
yarn install | ||
yarn build:tsc | ||
yarn test | ||
yarn set-version | ||
displayName: Install, Build & Test | ||
# Publish Test Results | ||
- task: PublishTestResults@2 | ||
displayName: 'Publish Test Results junit.xml' | ||
inputs: | ||
testResultsFiles: junit.xml | ||
failTaskOnFailedTests: true | ||
|
||
# Publish code coverage | ||
- task: PublishCodeCoverageResults@1 | ||
displayName: 'Publish code coverage from $(System.DefaultWorkingDirectory)/coverage/cobertura-coverage.xml' | ||
inputs: | ||
codeCoverageTool: Cobertura | ||
summaryFileLocation: '$(System.DefaultWorkingDirectory)/coverage/cobertura-coverage.xml' | ||
reportDirectory: '$(System.DefaultWorkingDirectory)/coverage' | ||
failIfCoverageEmpty: true |