Skip to content

Commit

Permalink
Fix CI configuration errors (#355)
Browse files Browse the repository at this point in the history
* Fix CI configuration errors

* Remove downloading artifacts

* Add external NPM task
  • Loading branch information
kpajdzik authored Jun 3, 2019
1 parent 2efcc75 commit 8b4fc43
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .devops/azure-pipelines-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ jobs:
inputs:
pathtoPublish: $(Build.SourcesDirectory)/dist
artifactName: dist
- template: azure-pipelines-job.yml
- template: azure-pipelines-test.yml
parameters:
nodeVersion: '8'
- template: azure-pipelines-job.yml
- template: azure-pipelines-test.yml
parameters:
nodeVersion: '10'
- template: azure-pipelines-job.yml
- template: azure-pipelines-test.yml
parameters:
nodeVersion: '12'
16 changes: 16 additions & 0 deletions .devops/azure-pipelines-pr.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
jobs:
- job: Build
pool:
vmImage: 'Ubuntu 16.04'
steps:
- task: Npm@1
displayName: 'npm install'
inputs:
command: custom
verbose: false
customCommand: install
- task: Npm@1
displayName: 'npm run build'
inputs:
command: custom
verbose: false
customCommand: run build
- job: Check_Everything
pool:
vmImage: 'Ubuntu 16.04'
Expand Down
12 changes: 6 additions & 6 deletions .devops/azure-pipelines-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
- job: 'testOn${{parameters.nodeVersion}}'
pool:
vmImage: 'Ubuntu 16.04'
dependsOn: Pack
dependsOn: Build
condition: succeeded()
steps:
- script: 'sudo apt-get update'
Expand All @@ -20,12 +20,12 @@ jobs:
displayName: 'npm install'
inputs:
verbose: false
- task: DownloadBuildArtifacts@0
displayName: 'Download Build Artifacts'
- task: Npm@1
displayName: 'npm test'
inputs:
artifactName: dist
downloadPath: $(System.DefaultWorkingDirectory)
- script: 'npm test'
command: custom
verbose: false
customCommand: test
- task: PublishTestResults@2
inputs:
testResultsFiles: '$(System.DefaultWorkingDirectory)/test-results.xml'
Expand Down

0 comments on commit 8b4fc43

Please sign in to comment.