From 110268e1cef9c4ebdee67e715126b03e357cf4b7 Mon Sep 17 00:00:00 2001 From: Josh Johnson Date: Sat, 1 Jun 2019 14:14:19 -0400 Subject: [PATCH 1/5] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..89b718e --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,28 @@ +pr: + - master + +pool: + vmImage: "ubuntu-latest" + +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) + displayName: "VSCE Package" + +- task: PublishBuildArtifacts@1 + inputs: + pathtoPublish: $(Build.ArtifactStagingDirectory) + artifactName: drop From 2f4cab367aa42a598633e716c122ba810e701334 Mon Sep 17 00:00:00 2001 From: Josh Johnson Date: Sat, 1 Jun 2019 14:21:45 -0400 Subject: [PATCH 2/5] Update azure-pipelines.yml --- azure-pipelines.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 89b718e..1c88852 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,8 +1,11 @@ pr: - master + +trigger: + - "refs/tags/*" pool: - vmImage: "ubuntu-latest" + vmImage: "windows-2019" steps: - task: NodeTool@0 From 545f596db3e2f49bafeacaa8f1d0dad4925778ed Mon Sep 17 00:00:00 2001 From: Josh Johnson Date: Sat, 1 Jun 2019 14:33:43 -0400 Subject: [PATCH 3/5] Update azure-pipelines.yml --- azure-pipelines.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 1c88852..90544e6 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,3 +1,4 @@ +name: $(Build.SourceBranch)$(Rev:.r) pr: - master @@ -22,7 +23,7 @@ steps: displayName: "NPM Install" - script: | - vsce package --out $(Build.ArtifactStagingDirectory) + vsce package --out "$(Build.ArtifactStagingDirectory)/xml-tools.vsix" displayName: "VSCE Package" - task: PublishBuildArtifacts@1 From ef64498ad9dd76fdd4a8e33337563f8a893dde4e Mon Sep 17 00:00:00 2001 From: Josh Johnson Date: Sat, 1 Jun 2019 14:40:23 -0400 Subject: [PATCH 4/5] Update azure-pipelines.yml --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 90544e6..b9a640a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,4 +1,4 @@ -name: $(Build.SourceBranch)$(Rev:.r) +name: "$(Build.SourceBranchName)-$(Build.SourceVersion)$(Rev:.r)" pr: - master @@ -23,7 +23,7 @@ steps: displayName: "NPM Install" - script: | - vsce package --out "$(Build.ArtifactStagingDirectory)/xml-tools.vsix" + vsce package --out "$(Build.ArtifactStagingDirectory)/xml-$(Build.SourceBranchName)-$(Build.SourceVersion).vsix" displayName: "VSCE Package" - task: PublishBuildArtifacts@1 From 986ad5555ea8a707b705a60ad81382355ea54426 Mon Sep 17 00:00:00 2001 From: Josh Johnson Date: Sat, 1 Jun 2019 14:43:27 -0400 Subject: [PATCH 5/5] Delete .travis.yml --- .travis.yml | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 .travis.yml 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