diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 523be16..0000000 --- a/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ -notifications: - email: false - -sudo: false - -install: - - npm install - -script: - - npm run test \ No newline at end of file diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..b9a640a --- /dev/null +++ b/azure-pipelines.yml @@ -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