Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroppy committed Aug 4, 2019
1 parent 68a1f29 commit 7805a1a
Show file tree
Hide file tree
Showing 4 changed files with 113 additions and 111 deletions.
208 changes: 104 additions & 104 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,107 +83,107 @@ jobs:
condition: succeededOrFailed()
displayName: 'Submit coverage data to codecov'

- job: macOS
pool:
vmImage: macOS-10.14
strategy:
maxParallel: 5
matrix:
node-12:
node_version: ^12.0.0
webpack_version: latest
node-10:
node_version: ^10.13.0
webpack_version: latest
node-8:
node_version: ^8.9.0
webpack_version: latest
node-6:
node_version: ^6.9.0
webpack_version: latest
steps:
- task: NodeTool@0
inputs:
versionSpec: $(node_version)
displayName: 'Install Node.js $(node_version)'
- task: Npm@1
inputs:
command: custom
customCommand: i -g npm@latest
displayName: 'Install latest NPM'
- script: |
node -v
npm -v
displayName: 'Print versions'
- task: Npm@1
inputs:
command: custom
customCommand: ci
displayName: 'Install dependencies'
- script: npm i webpack@$(webpack_version)
displayName: 'Install "webpack@$(webpack_version)"'
- script: npm run test:coverage -- --ci --reporters="default" --reporters="jest-junit"
displayName: 'Run tests with coverage'
- task: PublishTestResults@2
inputs:
testRunTitle: 'Linux with Node.js $(node_version)'
testResultsFiles: '**/junit.xml'
condition: succeededOrFailed()
displayName: 'Publish test results'
- script: curl -s https://codecov.io/bash | bash -s -- -t $(CODECOV_TOKEN)
condition: succeededOrFailed()
displayName: 'Submit coverage data to codecov'

- job: Windows
pool:
vmImage: windows-2019
strategy:
maxParallel: 5
matrix:
node-12:
node_version: ^12.0.0
webpack_version: latest
node-10:
node_version: ^10.13.0
webpack_version: latest
node-8:
node_version: ^8.9.0
webpack_version: latest
node-6:
node_version: ^6.9.0
webpack_version: latest
steps:
- script: 'git config --global core.autocrlf input'
displayName: 'Config git core.autocrlf'
- checkout: self
- task: NodeTool@0
inputs:
versionSpec: $(node_version)
displayName: 'Install Node.js $(node_version)'
- task: Npm@1
inputs:
command: custom
customCommand: i -g npm@latest
displayName: 'Install latest NPM'
- script: |
node -v
npm -v
displayName: 'Print versions'
- task: Npm@1
inputs:
command: custom
customCommand: ci
displayName: 'Install dependencies'
- script: npm i webpack@$(webpack_version)
displayName: 'Install "webpack@$(webpack_version)"'
- script: npm run test:coverage -- --ci --reporters="default" --reporters="jest-junit"
displayName: 'Run tests with coverage'
- task: PublishTestResults@2
inputs:
testRunTitle: 'Linux with Node.js $(node_version)'
testResultsFiles: '**/junit.xml'
condition: succeededOrFailed()
displayName: 'Publish test results'
- script: curl -s https://codecov.io/bash | bash -s -- -t $(CODECOV_TOKEN)
condition: succeededOrFailed()
displayName: 'Submit coverage data to codecov'
# - job: macOS
# pool:
# vmImage: macOS-10.14
# strategy:
# maxParallel: 5
# matrix:
# node-12:
# node_version: ^12.0.0
# webpack_version: latest
# node-10:
# node_version: ^10.13.0
# webpack_version: latest
# node-8:
# node_version: ^8.9.0
# webpack_version: latest
# node-6:
# node_version: ^6.9.0
# webpack_version: latest
# steps:
# - task: NodeTool@0
# inputs:
# versionSpec: $(node_version)
# displayName: 'Install Node.js $(node_version)'
# - task: Npm@1
# inputs:
# command: custom
# customCommand: i -g npm@latest
# displayName: 'Install latest NPM'
# - script: |
# node -v
# npm -v
# displayName: 'Print versions'
# - task: Npm@1
# inputs:
# command: custom
# customCommand: ci
# displayName: 'Install dependencies'
# - script: npm i webpack@$(webpack_version)
# displayName: 'Install "webpack@$(webpack_version)"'
# - script: npm run test:coverage -- --ci --reporters="default" --reporters="jest-junit"
# displayName: 'Run tests with coverage'
# - task: PublishTestResults@2
# inputs:
# testRunTitle: 'Linux with Node.js $(node_version)'
# testResultsFiles: '**/junit.xml'
# condition: succeededOrFailed()
# displayName: 'Publish test results'
# - script: curl -s https://codecov.io/bash | bash -s -- -t $(CODECOV_TOKEN)
# condition: succeededOrFailed()
# displayName: 'Submit coverage data to codecov'
#
# - job: Windows
# pool:
# vmImage: windows-2019
# strategy:
# maxParallel: 5
# matrix:
# node-12:
# node_version: ^12.0.0
# webpack_version: latest
# node-10:
# node_version: ^10.13.0
# webpack_version: latest
# node-8:
# node_version: ^8.9.0
# webpack_version: latest
# node-6:
# node_version: ^6.9.0
# webpack_version: latest
# steps:
# - script: 'git config --global core.autocrlf input'
# displayName: 'Config git core.autocrlf'
# - checkout: self
# - task: NodeTool@0
# inputs:
# versionSpec: $(node_version)
# displayName: 'Install Node.js $(node_version)'
# - task: Npm@1
# inputs:
# command: custom
# customCommand: i -g npm@latest
# displayName: 'Install latest NPM'
# - script: |
# node -v
# npm -v
# displayName: 'Print versions'
# - task: Npm@1
# inputs:
# command: custom
# customCommand: ci
# displayName: 'Install dependencies'
# - script: npm i webpack@$(webpack_version)
# displayName: 'Install "webpack@$(webpack_version)"'
# - script: npm run test:coverage -- --ci --reporters="default" --reporters="jest-junit"
# displayName: 'Run tests with coverage'
# - task: PublishTestResults@2
# inputs:
# testRunTitle: 'Linux with Node.js $(node_version)'
# testResultsFiles: '**/junit.xml'
# condition: succeededOrFailed()
# displayName: 'Publish test results'
# - script: curl -s https://codecov.io/bash | bash -s -- -t $(CODECOV_TOKEN)
# condition: succeededOrFailed()
# displayName: 'Submit coverage data to codecov'
2 changes: 2 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ module.exports = {
setupFilesAfterEnv: ['<rootDir>/setupTest.js'],
globalSetup: '<rootDir>/globalSetupTest.js',
testSequencer: '<rootDir>/test/testSequencer.js',
bail: 1,
verbose: true,
};
12 changes: 6 additions & 6 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
"tcp-port-used": "^1.0.1",
"typescript": "^3.5.3",
"url-loader": "^1.1.2",
"webpack": "^4.39.0",
"webpack": "^4.39.1",
"webpack-cli": "^3.3.6"
},
"peerDependencies": {
Expand Down

0 comments on commit 7805a1a

Please sign in to comment.