aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErwin de Haan <EraYaN@users.noreply.github.com>2019-02-18 22:26:40 +0100
committerErwin de Haan <EraYaN@users.noreply.github.com>2019-02-18 22:26:40 +0100
commit6834b64922d2dd10b8e27943ec6630d1d95d6ae5 (patch)
treec296c6c1f283836e35946dab55c95e6d6ba34e2a
parent781cca0c8217dfec6f31ef891faaeca15b12eb5f (diff)
Add first Azure Pipeline (Build)
-rw-r--r--.azure/azure-pipelines.yml50
1 files changed, 50 insertions, 0 deletions
diff --git a/.azure/azure-pipelines.yml b/.azure/azure-pipelines.yml
new file mode 100644
index 0000000000..ad6ba1ab27
--- /dev/null
+++ b/.azure/azure-pipelines.yml
@@ -0,0 +1,50 @@
+resources:
+- repo: self
+
+pool:
+ vmImage: Hosted Ubuntu 1604
+#Your build pipeline references an undefined variable named ‘Parameters.RestoreBuildProjects’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972
+#Your build pipeline references an undefined variable named ‘Parameters.RestoreBuildProjects’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972
+#Your build pipeline references the ‘BuildConfiguration’ variable, which you’ve selected to be settable at queue time. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab, and then select the option to make it settable at queue time. See https://go.microsoft.com/fwlink/?linkid=865971
+#Your build pipeline references an undefined variable named ‘Parameters.TestProjects’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972
+#Your build pipeline references the ‘BuildConfiguration’ variable, which you’ve selected to be settable at queue time. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab, and then select the option to make it settable at queue time. See https://go.microsoft.com/fwlink/?linkid=865971
+#Your build pipeline references an undefined variable named ‘Parameters.RestoreBuildProjects’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972
+#Your build pipeline references the ‘BuildConfiguration’ variable, which you’ve selected to be settable at queue time. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab, and then select the option to make it settable at queue time. See https://go.microsoft.com/fwlink/?linkid=865971
+
+steps:
+- task: DotNetCoreCLI@2
+ displayName: Restore
+ inputs:
+ command: restore
+ projects: '$(Parameters.RestoreBuildProjects)'
+
+- task: DotNetCoreCLI@2
+ displayName: Build
+ inputs:
+ projects: '$(Parameters.RestoreBuildProjects)'
+ arguments: '--configuration $(BuildConfiguration)'
+
+- task: DotNetCoreCLI@2
+ displayName: Test
+ inputs:
+ command: test
+ projects: '$(Parameters.TestProjects)'
+ arguments: '--configuration $(BuildConfiguration)'
+ enabled: false
+
+- task: DotNetCoreCLI@2
+ displayName: Publish
+ inputs:
+ command: publish
+ publishWebProjects: false
+ projects: '$(Parameters.RestoreBuildProjects)'
+ arguments: '--configuration $(BuildConfiguration) --output $(build.artifactstagingdirectory)'
+ zipAfterPublish: True
+
+- task: PublishBuildArtifacts@1
+ displayName: 'Publish Artifact'
+ inputs:
+ PathtoPublish: '$(build.artifactstagingdirectory)'
+ enabled: false
+
+