Skip to content

Commit ef3a6b3

Browse files
authored
Merge pull request #1 from dotnet/users/dmitrya/ci-testing2
Users/dmitrya/ci testing2
2 parents 8481317 + 6448213 commit ef3a6b3

File tree

92 files changed

+9847
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+9847
-0
lines changed

.editorconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
root = true
2+
3+
[*.cs]
4+
# Sort using directives with System.* appearing first
5+
dotnet_sort_system_directives_first = true

.gitattributes

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
###############################################################################
2+
# Set default behavior to automatically normalize line endings.
3+
###############################################################################
4+
* text=auto
5+
6+
# Force bash scripts to always use lf line endings so that if a repo is accessed
7+
# in Unix via a file share from Windows, the scripts will work.
8+
*.sh text eol=lf

.vsts-dotnet-ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
################################################################################
2+
# ML.NET's PR validation build
3+
################################################################################
4+
5+
resources:
6+
containers:
7+
- container: LinuxContainer
8+
image: microsoft/dotnet-buildtools-prereqs:centos-7-b46d863-20180719033416
9+
10+
phases:
11+
- template: /build/ci/phase-template.yml
12+
parameters:
13+
name: Windows_x64
14+
buildScript: build.cmd
15+
queue:
16+
name: Hosted VS2017

AutoML.sln

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 15
4+
VisualStudioVersion = 15.0.28010.2050
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoML", "src\AutoML\AutoML.csproj", "{B3727729-3DF8-47E0-8710-9B41DAF55817}"
7+
EndProject
8+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Samples", "src\Samples\Samples.csproj", "{64A7294E-A2C7-4499-8F0B-4BB074047C6B}"
9+
EndProject
10+
#Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "InternalClient", "src\InternalClient\InternalClient.csproj", "{8D564A01-DCA9-443A-9995-A5A67BE4C2CD}"
11+
#EndProject
12+
#Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Test", "src\Test\Test.csproj", "{6DA91D40-302C-495C-B1DA-20701CDA49C6}"
13+
#EndProject
14+
Global
15+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
16+
Debug|Any CPU = Debug|Any CPU
17+
Debug-Intrinsics|Any CPU = Debug-Intrinsics|Any CPU
18+
Release|Any CPU = Release|Any CPU
19+
Release-Intrinsics|Any CPU = Release-Intrinsics|Any CPU
20+
EndGlobalSection
21+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
22+
{B3727729-3DF8-47E0-8710-9B41DAF55817}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
23+
{B3727729-3DF8-47E0-8710-9B41DAF55817}.Debug|Any CPU.Build.0 = Debug|Any CPU
24+
{B3727729-3DF8-47E0-8710-9B41DAF55817}.Debug-Intrinsics|Any CPU.ActiveCfg = Debug|Any CPU
25+
{B3727729-3DF8-47E0-8710-9B41DAF55817}.Debug-Intrinsics|Any CPU.Build.0 = Debug|Any CPU
26+
{B3727729-3DF8-47E0-8710-9B41DAF55817}.Release|Any CPU.ActiveCfg = Release|Any CPU
27+
{B3727729-3DF8-47E0-8710-9B41DAF55817}.Release|Any CPU.Build.0 = Release|Any CPU
28+
{B3727729-3DF8-47E0-8710-9B41DAF55817}.Release-Intrinsics|Any CPU.ActiveCfg = Release|Any CPU
29+
{B3727729-3DF8-47E0-8710-9B41DAF55817}.Release-Intrinsics|Any CPU.Build.0 = Release|Any CPU
30+
{64A7294E-A2C7-4499-8F0B-4BB074047C6B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
31+
{64A7294E-A2C7-4499-8F0B-4BB074047C6B}.Debug|Any CPU.Build.0 = Debug|Any CPU
32+
{64A7294E-A2C7-4499-8F0B-4BB074047C6B}.Debug-Intrinsics|Any CPU.ActiveCfg = Debug|Any CPU
33+
{64A7294E-A2C7-4499-8F0B-4BB074047C6B}.Debug-Intrinsics|Any CPU.Build.0 = Debug|Any CPU
34+
{64A7294E-A2C7-4499-8F0B-4BB074047C6B}.Release|Any CPU.ActiveCfg = Release|Any CPU
35+
{64A7294E-A2C7-4499-8F0B-4BB074047C6B}.Release|Any CPU.Build.0 = Release|Any CPU
36+
{64A7294E-A2C7-4499-8F0B-4BB074047C6B}.Release-Intrinsics|Any CPU.ActiveCfg = Release|Any CPU
37+
{64A7294E-A2C7-4499-8F0B-4BB074047C6B}.Release-Intrinsics|Any CPU.Build.0 = Release|Any CPU
38+
{8D564A01-DCA9-443A-9995-A5A67BE4C2CD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
39+
{8D564A01-DCA9-443A-9995-A5A67BE4C2CD}.Debug|Any CPU.Build.0 = Debug|Any CPU
40+
{8D564A01-DCA9-443A-9995-A5A67BE4C2CD}.Debug-Intrinsics|Any CPU.ActiveCfg = Debug|Any CPU
41+
{8D564A01-DCA9-443A-9995-A5A67BE4C2CD}.Debug-Intrinsics|Any CPU.Build.0 = Debug|Any CPU
42+
{8D564A01-DCA9-443A-9995-A5A67BE4C2CD}.Release|Any CPU.ActiveCfg = Release|Any CPU
43+
{8D564A01-DCA9-443A-9995-A5A67BE4C2CD}.Release|Any CPU.Build.0 = Release|Any CPU
44+
{8D564A01-DCA9-443A-9995-A5A67BE4C2CD}.Release-Intrinsics|Any CPU.ActiveCfg = Release|Any CPU
45+
{8D564A01-DCA9-443A-9995-A5A67BE4C2CD}.Release-Intrinsics|Any CPU.Build.0 = Release|Any CPU
46+
{6DA91D40-302C-495C-B1DA-20701CDA49C6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
47+
{6DA91D40-302C-495C-B1DA-20701CDA49C6}.Debug|Any CPU.Build.0 = Debug|Any CPU
48+
{6DA91D40-302C-495C-B1DA-20701CDA49C6}.Debug-Intrinsics|Any CPU.ActiveCfg = Debug|Any CPU
49+
{6DA91D40-302C-495C-B1DA-20701CDA49C6}.Debug-Intrinsics|Any CPU.Build.0 = Debug|Any CPU
50+
{6DA91D40-302C-495C-B1DA-20701CDA49C6}.Release|Any CPU.ActiveCfg = Release|Any CPU
51+
{6DA91D40-302C-495C-B1DA-20701CDA49C6}.Release|Any CPU.Build.0 = Release|Any CPU
52+
{6DA91D40-302C-495C-B1DA-20701CDA49C6}.Release-Intrinsics|Any CPU.ActiveCfg = Release|Any CPU
53+
{6DA91D40-302C-495C-B1DA-20701CDA49C6}.Release-Intrinsics|Any CPU.Build.0 = Release|Any CPU
54+
EndGlobalSection
55+
GlobalSection(SolutionProperties) = preSolution
56+
HideSolutionNode = FALSE
57+
EndGlobalSection
58+
GlobalSection(ExtensibilityGlobals) = postSolution
59+
SolutionGuid = {8C1BC26C-B87E-47CD-928E-00EFE4353B40}
60+
EndGlobalSection
61+
EndGlobal

BuildToolsVersion.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0.0-preview1-03129-01

CONTRIBUTING.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Welcome!
2+
3+
If you are here, it means you are interested in helping us out. A hearty welcome and thank you! There are many ways you can contribute to the ML.NET project:
4+
5+
* Offer PR's to fix bugs or implement new features.
6+
* Give us feedback and bug reports regarding the software or the documentation.
7+
* Improve our examples, tutorials, and documentation.
8+
9+
## Getting started:
10+
11+
Please join the community on Gitter [![Join the chat at https://gitter.im/dotnet/mlnet](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/dotnet/mlnet?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge). Also please make sure to take a look at the project [roadmap](ROADMAP.md).
12+
13+
### Pull requests
14+
15+
If you are new to GitHub [here](https://help.github.com/categories/collaborating-with-issues-and-pull-requests/) is a detailed help source on getting involved with development on GitHub.
16+
17+
As a first time contributor, you will be invited to sign the Contributor License Agreement (CLA). Please follow the instructions of the dotnet foundation bot reviewer on your PR to sign the agreement indicating that you have appropriate rights to your contribution.
18+
19+
Your pull request needs to reference a filed issue. Please fill in the template that is populated for the pull request. Only pull requests addressing small typos can have no issues associated with them.
20+
21+
An ML.NET team member will be assigned to your pull request once the continuous integration checks have passed successfully.
22+
23+
All commits in a pull request will be squashed to a single commit with the original creator as author.
24+
25+
# Contributing
26+
27+
See [Contributing](docs/project-docs/contributing.md) for information about coding styles, source structure, making pull requests, and more.
28+
29+
# Developers
30+
31+
See the [Developer Guide](docs/project-docs/developer-guide.md) for details about developing in this repo.

Directory.Build.props

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
<Project>
2+
<!-- Directory.Build.props contains the common build settings for all projects in the repo. -->
3+
4+
<Import Project="build/BranchInfo.props" />
5+
<Import Project="build/Dependencies.props" />
6+
7+
<PropertyGroup>
8+
<Configuration Condition="'$(Configuration)'==''">Debug</Configuration>
9+
<Configurations>Debug;Release;Debug-Intrinsics;Release-Intrinsics;Debug-netfx;Release-netfx</Configurations>
10+
<Platform Condition="'$(Platform)'==''">AnyCPU</Platform>
11+
<TargetArchitecture Condition="'$(TargetArchitecture)' == ''">x64</TargetArchitecture>
12+
<NativeTargetArchitecture Condition="'$(NativeTargetArchitecture)' == ''">$(TargetArchitecture)</NativeTargetArchitecture>
13+
<PlatformConfig>$(Platform).$(Configuration)</PlatformConfig>
14+
</PropertyGroup>
15+
16+
<PropertyGroup>
17+
<RestoreSources>
18+
https://api.nuget.org/v3/index.json;
19+
https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json;
20+
https://dotnet.myget.org/F/dotnet-core/api/v3/index.json;
21+
</RestoreSources>
22+
</PropertyGroup>
23+
24+
<!-- Common repo directories -->
25+
<PropertyGroup>
26+
<RepoRoot>$(MSBuildThisFileDirectory)</RepoRoot>
27+
<SourceDir>$(RepoRoot)src/</SourceDir>
28+
<PkgDir>$(RepoRoot)pkg/</PkgDir>
29+
30+
<!-- Output directories -->
31+
<BinDir Condition="'$(BinDir)'==''">$(RepoRoot)bin/</BinDir>
32+
<BaseOutputPath Condition="'$(BaseOutputPath)'==''">$(BinDir)</BaseOutputPath>
33+
<ObjDir Condition="'$(ObjDir)'==''">$(BinDir)obj/</ObjDir>
34+
<RootIntermediateOutputPath Condition="'$(RootIntermediateOutputPath)'==''">$(ObjDir)</RootIntermediateOutputPath>
35+
36+
<IntermediateOutputRootPath Condition="'$(IntermediateOutputRootPath)' == ''">$(RootIntermediateOutputPath)$(PlatformConfig)\</IntermediateOutputRootPath>
37+
<IntermediateOutputPath Condition="'$(IntermediateOutputPath)' == ''">$(IntermediateOutputRootPath)$(MSBuildProjectName)\</IntermediateOutputPath>
38+
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)' == ''">$(IntermediateOutputPath)</BaseIntermediateOutputPath>
39+
40+
<OutputPath Condition="'$(OutputPath)'==''">$(BaseOutputPath)$(PlatformConfig)\$(MSBuildProjectName)\</OutputPath>
41+
42+
<PackageAssetsPath>$(ObjDir)/packages/</PackageAssetsPath>
43+
44+
<PackageOutputPath Condition="'$(PackageOutputPath)'=='' and '$(NonShippingPackage)' == 'true'">$(BinDir)packages_noship/</PackageOutputPath>
45+
<PackageOutputPath Condition="'$(PackageOutputPath)'==''">$(BinDir)packages/</PackageOutputPath>
46+
47+
<NativeOutputPath>$(BaseOutputPath)$(NativeTargetArchitecture).$(Configuration)\Native\</NativeOutputPath>
48+
49+
<!-- Input Directories -->
50+
<PackagesDir>$(DotNetRestorePackagesPath)</PackagesDir>
51+
<PackagesDir Condition="'$(PackagesDir)'==''">$(RepoRoot)packages/</PackagesDir>
52+
<RestorePackagesPath>$(PackagesDir)</RestorePackagesPath>
53+
<ToolsDir Condition="'$(ToolsDir)'==''">$(RepoRoot)Tools/</ToolsDir>
54+
</PropertyGroup>
55+
56+
<Import Project="$(ToolsDir)BuildVersion.targets"
57+
Condition="Exists('$(ToolsDir)BuildVersion.targets')" />
58+
59+
<!-- Version properties -->
60+
<PropertyGroup>
61+
<VersionPrefix>$(MajorVersion).$(MinorVersion).$(PatchVersion)</VersionPrefix>
62+
<AssemblyFileVersion Condition="'$(AssemblyFileVersion)'==''">$(MajorVersion).$(MinorVersion).$(BuildNumberMajor).$(BuildNumberMinor)</AssemblyFileVersion>
63+
64+
<StabilizePackageVersion Condition="'$(StabilizePackageVersion)' == ''">false</StabilizePackageVersion>
65+
<IncludeBuildNumberInPackageVersion Condition="'$(StabilizePackageVersion)' != 'true'">true</IncludeBuildNumberInPackageVersion>
66+
67+
<VersionSuffix></VersionSuffix>
68+
<VersionSuffix Condition="'$(StabilizePackageVersion)' != 'true'">$(PreReleaseLabel)</VersionSuffix>
69+
<VersionSuffix Condition="'$(IncludeBuildNumberInPackageVersion)' == 'true'">$(VersionSuffix)-$(BuildNumberMajor)-$(BuildNumberMinor)</VersionSuffix>
70+
</PropertyGroup>
71+
72+
<!-- SourceLink properties used by dotnet/buildtools - need to be set before importing $(ToolsDir)versioning.props -->
73+
<PropertyGroup>
74+
<UseSourceLink>true</UseSourceLink>
75+
<GitHubRepositoryName>machinelearning</GitHubRepositoryName>
76+
</PropertyGroup>
77+
78+
<!--
79+
Source code control properties used by the .NET Core SDK to inject SCC info into the NuGet package.
80+
In future versions, these will be used for SourceLink and to generate AssemblyInfo.
81+
-->
82+
<PropertyGroup>
83+
<PrivateRepositoryUrl>https://github.com/dotnet/$(GitHubRepositoryName)</PrivateRepositoryUrl>
84+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
85+
<SourceRevisionId>$(LatestCommit)</SourceRevisionId>
86+
</PropertyGroup>
87+
88+
<Import Project="$(ToolsDir)versioning.props"
89+
Condition="Exists('$(ToolsDir)versioning.props') and '$(DisableImportVersioningProps)' != 'true'" />
90+
91+
<!-- Language configuration -->
92+
<PropertyGroup>
93+
<LangVersion>latest</LangVersion> <!-- default to allowing all language features -->
94+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
95+
</PropertyGroup>
96+
97+
<PropertyGroup>
98+
<RunningOnUnix Condition="'$(OS)'!='Windows_NT'">true</RunningOnUnix>
99+
</PropertyGroup>
100+
101+
<!-- Signing properties -->
102+
<PropertyGroup>
103+
<AssemblyOriginatorKeyFile Condition="'$(AssemblyOriginatorKeyFile)' == ''">$(ToolsDir)Open.snk</AssemblyOriginatorKeyFile>
104+
<SignAssembly>true</SignAssembly>
105+
<PublicSign Condition="'$(OS)' != 'Windows_NT'">true</PublicSign>
106+
</PropertyGroup>
107+
108+
<PropertyGroup>
109+
<UseIntrinsics Condition="'$(UseIntrinsics)' == ''">$(Configuration.EndsWith('-Intrinsics'))</UseIntrinsics>
110+
</PropertyGroup>
111+
112+
<!-- Need to explicitly set these properties for the -Intrinsics configurations becuase they are typically based off 'Debug' or 'Release' configs -->
113+
<!-- Taken from https://github.com/dotnet/sdk/blob/073c98b92c81066c6c2e17c3674adbb6e833409a/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.props#L41-L47 -->
114+
<PropertyGroup Condition="'$(Configuration)' == 'Debug-Intrinsics'">
115+
<DebugSymbols>true</DebugSymbols>
116+
<DefineConstants>$(DefineContants);DEBUG</DefineConstants>
117+
<Optimize>false</Optimize>
118+
</PropertyGroup>
119+
<PropertyGroup Condition="'$(Configuration)' == 'Release-Intrinsics'">
120+
<Optimize>true</Optimize>
121+
</PropertyGroup>
122+
123+
<PropertyGroup>
124+
<CustomAfterMicrosoftCommonTargets>$(RepoRoot)build\AfterCommonTargets.targets</CustomAfterMicrosoftCommonTargets>
125+
</PropertyGroup>
126+
</Project>

Directory.Build.targets

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<Project InitialTargets="CheckForBuildTools">
2+
3+
<Target Name="CheckForBuildTools">
4+
<Error Condition="!Exists('$(ToolsDir)')"
5+
Text="The tools directory [$(ToolsDir)] does not exist. Please run build in the root of the repo to ensure the tools are installed before attempting to build an individual project." />
6+
</Target>
7+
8+
<Target Name="CopyNativeAssemblies"
9+
BeforeTargets="PrepareForRun">
10+
11+
<PropertyGroup>
12+
<LibPrefix Condition="'$(OS)' != 'Windows_NT'">lib</LibPrefix>
13+
<LibExtension Condition="'$(OS)' == 'Windows_NT'">.dll</LibExtension>
14+
<LibExtension Condition="'$(OS)' != 'Windows_NT'">.so</LibExtension>
15+
<LibExtension Condition="$([MSBuild]::IsOSPlatform('osx'))">.dylib</LibExtension>
16+
</PropertyGroup>
17+
18+
<ItemGroup>
19+
<NativeAssemblyReference>
20+
<FullAssemblyPath>$(NativeOutputPath)$(LibPrefix)%(NativeAssemblyReference.Identity)$(LibExtension)</FullAssemblyPath>
21+
</NativeAssemblyReference>
22+
</ItemGroup>
23+
24+
<Copy SourceFiles = "@(NativeAssemblyReference->'%(FullAssemblyPath)')"
25+
DestinationFolder="$(OutputPath)"
26+
OverwriteReadOnlyFiles="$(OverwriteReadOnlyFiles)"
27+
Retries="$(CopyRetryCount)"
28+
RetryDelayMilliseconds="$(CopyRetryDelayMilliseconds)"
29+
UseHardlinksIfPossible="$(CreateHardLinksForPublishFilesIfPossible)"
30+
UseSymboliclinksIfPossible="$(CreateSymbolicLinksForPublishFilesIfPossible)">
31+
<Output TaskParameter="DestinationFiles" ItemName="FileWrites"/>
32+
</Copy>
33+
34+
</Target>
35+
36+
<Import Project="$(ToolsDir)/versioning.targets" Condition="Exists('$(ToolsDir)/versioning.targets')" />
37+
</Project>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0.100-preview-009812

DotnetCLIVersion.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.1.401

Nuget.config

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<packageSources>
4+
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
5+
</packageSources>
6+
</configuration>

build.cmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@call "%~dp0run.cmd" build %*
2+
@exit /b %ERRORLEVEL%

0 commit comments

Comments
 (0)