-
-
Notifications
You must be signed in to change notification settings - Fork 850
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
Showing
5 changed files
with
81 additions
and
3 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,34 @@ | ||
steps: | ||
- task: NodeTool@0 | ||
inputs: | ||
versionSpec: $(NODE_VERSION) | ||
displayName: 'Install Node.js' | ||
|
||
- script: npm install | ||
displayName: 'Install dependencies (npm install)' | ||
|
||
- script: npm run test:lint | ||
displayName: 'Run lint check' | ||
|
||
- script: npm run test:validate | ||
displayName: 'Run TypeScript Declaration / Flow checks' | ||
|
||
- bash: | | ||
npm install -g tap-junit | ||
npm run test:ava | tap-junit > test-results.xml | ||
env: | ||
CI: true | ||
displayName: 'Run tests' | ||
|
||
- task: PublishTestResults@2 | ||
inputs: | ||
testResultsFormat: JUnit | ||
testResultsFiles: './test-results.xml' | ||
testRunTitle: '$(System.JobIdentifier) tests' | ||
displayName: 'Publish test results' | ||
|
||
- script: npm run report-coverage | ||
env: | ||
COVERALLS_REPO_TOKEN: $(COVERALLS_REPO_TOKEN_SECRET) | ||
continueOnError: true | ||
displayName: 'Publish coverage results' |
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,35 @@ | ||
trigger: | ||
- master | ||
|
||
jobs: | ||
- job: Linux | ||
pool: | ||
vmImage: 'ubuntu-16.04' | ||
strategy: | ||
matrix: | ||
Node8: | ||
NODE_VERSION: '8.x' | ||
Node10: | ||
NODE_VERSION: '10.x' | ||
steps: | ||
- template: .azure-pipelines-steps.yml | ||
|
||
- job: Windows | ||
pool: | ||
vmImage: vs2017-win2016 | ||
strategy: | ||
matrix: | ||
Node10: | ||
NODE_VERSION: '10.x' | ||
steps: | ||
- template: .azure-pipelines-steps.yml | ||
|
||
- job: macOS | ||
pool: | ||
vmImage: macos-10.13 | ||
strategy: | ||
matrix: | ||
Node10: | ||
NODE_VERSION: '10.x' | ||
steps: | ||
- template: .azure-pipelines-steps.yml |
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,3 @@ | ||
export default function config() { | ||
return process.env.CI ? {tap: true} : {}; | ||
} |
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
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