Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up CI with Azure Pipelines #48

Merged
merged 4 commits into from
Jul 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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