forked from external/vscode-xml
		
	Merge pull request #279 from DotJoshJohnson/azure-pipelines
Set up CI with Azure Pipelines
This commit is contained in:
		
						commit
						c2090c53a0
					
				
					 2 changed files with 32 additions and 10 deletions
				
			
		
							
								
								
									
										10
									
								
								.travis.yml
									
										
									
									
									
								
							
							
						
						
									
										10
									
								
								.travis.yml
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -1,10 +0,0 @@
 | 
			
		|||
notifications:
 | 
			
		||||
    email: false
 | 
			
		||||
    
 | 
			
		||||
sudo: false
 | 
			
		||||
 | 
			
		||||
install:
 | 
			
		||||
    - npm install
 | 
			
		||||
    
 | 
			
		||||
script:
 | 
			
		||||
    - npm run test
 | 
			
		||||
							
								
								
									
										32
									
								
								azure-pipelines.yml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								azure-pipelines.yml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,32 @@
 | 
			
		|||
name: "$(Build.SourceBranchName)-$(Build.SourceVersion)$(Rev:.r)"
 | 
			
		||||
pr:
 | 
			
		||||
  - master
 | 
			
		||||
  
 | 
			
		||||
trigger:
 | 
			
		||||
  - "refs/tags/*"
 | 
			
		||||
 | 
			
		||||
pool:
 | 
			
		||||
  vmImage: "windows-2019"
 | 
			
		||||
 | 
			
		||||
steps:
 | 
			
		||||
- task: NodeTool@0
 | 
			
		||||
  inputs:
 | 
			
		||||
    versionSpec: "10.x"
 | 
			
		||||
  displayName: "Install NodeJS"
 | 
			
		||||
 | 
			
		||||
- script: |
 | 
			
		||||
    npm install -g vsce
 | 
			
		||||
  displayName: "Install VSCE"
 | 
			
		||||
 | 
			
		||||
- script: |
 | 
			
		||||
    npm install
 | 
			
		||||
  displayName: "NPM Install"
 | 
			
		||||
 | 
			
		||||
- script: |
 | 
			
		||||
    vsce package --out "$(Build.ArtifactStagingDirectory)/xml-$(Build.SourceBranchName)-$(Build.SourceVersion).vsix"
 | 
			
		||||
  displayName: "VSCE Package"
 | 
			
		||||
 | 
			
		||||
- task: PublishBuildArtifacts@1
 | 
			
		||||
  inputs:
 | 
			
		||||
    pathtoPublish: $(Build.ArtifactStagingDirectory)
 | 
			
		||||
    artifactName: drop
 | 
			
		||||
		Loading…
	
	Add table
		
		Reference in a new issue