Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ jobs:
- job: Windows
pool: 'Hosted VS2017'

variables:
os_name: Windows

strategy:
matrix:
node_8_x:
Expand All @@ -17,6 +20,9 @@ jobs:
pool:
vmImage: 'Ubuntu 16.04'

variables:
os_name: Linux

strategy:
matrix:
node_8_x:
Expand All @@ -31,6 +37,9 @@ jobs:
pool:
vmImage: 'macOS 10.13'

variables:
os_name: OSX

strategy:
matrix:
node_8_x:
Expand All @@ -39,4 +48,4 @@ jobs:
node_version: 10.x

steps:
- template: scripts/azure-run-tests.yml
- template: scripts/azure-run-tests.yml
4 changes: 4 additions & 0 deletions packages/pkg-tests/yarn.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ const pkgDriver = generatePkgDriver({
},
});

if (process.platform === `win32`) {
jest.setTimeout(10000);
}

beforeEach(async () => {
await startPackageServer();
await getPackageRegistry();
Expand Down
3 changes: 2 additions & 1 deletion scripts/azure-run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ steps:

- script: |
cd packages/pkg-tests
yarn jest yarn --detectOpenHandles --reporters=default --reporters=jest-junit
yarn jest yarn --reporters=default --reporters=jest-junit
displayName: 'Run the acceptance tests'

- task: PublishTestResults@2
inputs:
testResultsFiles: '**/junit.xml'
testRunTitle: $(os_name) Node $(node_version)
displayName: 'Publishing the test results'
condition: always()