Skip to content

Commit

Permalink
Set up CI with Azure Pipelines (#48)
Browse files Browse the repository at this point in the history
Doing this so I can setup a Release pipeline that pushes to NuGet.

* JAVA_HOME_8_X64 workaround
  • Loading branch information
jonathanpeppers authored Jul 26, 2019
1 parent d8bcbca commit 6ca614f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
23 changes: 23 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# https://aka.ms/yaml

name: $(BuildID)

trigger:
- master

jobs:
- job: windows
pool:
name: Hosted Windows 2019 with VS2019
demands:
- msbuild
steps:
- powershell: |
./build.ps1 -t AppVeyor
displayName: build
- task: PublishPipelineArtifact@0
displayName: artifacts
inputs:
artifactName: artifacts
targetPath: build
condition: succeededOrFailed()
7 changes: 7 additions & 0 deletions helpers.cake
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ MSBuildSettings MSBuildSettings()

Information("Building using MSBuild at " + msBuildPath);
settings.ToolPath = msBuildPath;

var java_home = Environment.GetEnvironmentVariable("JAVA_HOME_8_X64");
if (!string.IsNullOrEmpty(java_home))
{
Information("JAVA_HOME_8_X64 set: " + java_home);
settings = settings.WithProperty("JavaSdkDirectory", java_home);
}
}
else
{
Expand Down

0 comments on commit 6ca614f

Please sign in to comment.