Skip to content

Commit 0d0df8f

Browse files
committed
Initial commit of arcade-ifying repo based off minimal-ci sample. Add placeholder XHarness and XHarness.Tests projects
1 parent 47e701a commit 0d0df8f

File tree

105 files changed

+9565
-21
lines changed

Some content is hidden

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

105 files changed

+9565
-21
lines changed

Diff for: .gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -348,3 +348,7 @@ MigrationBackup/
348348

349349
# Ionide (cross platform F# VS Code tools) working folder
350350
.ionide/
351+
352+
# Local installations of .net core
353+
.dotnet/
354+

Diff for: Build.cmd

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@echo off
2+
powershell -ExecutionPolicy ByPass -NoProfile -command "& """%~dp0eng\common\Build.ps1""" -restore -build %*"
3+
exit /b %ErrorLevel%

Diff for: Directory.Build.props

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project>
3+
<Import Project="Sdk.props" Sdk="Microsoft.DotNet.Arcade.Sdk" />
4+
5+
<PropertyGroup Condition="'$(CopyrightNetFoundation)' != ''">
6+
<Copyright>$(CopyrightNetFoundation)</Copyright>
7+
</PropertyGroup>
8+
<PropertyGroup>
9+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
10+
</PropertyGroup>
11+
</Project>

Diff for: Directory.Build.targets

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project>
3+
<Import Project="Sdk.targets" Sdk="Microsoft.DotNet.Arcade.Sdk" />
4+
</Project>

Diff for: LICENSE

-21
This file was deleted.

Diff for: LICENSE.TXT

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) .NET Foundation and Contributors
4+
5+
All rights reserved.
6+
7+
Permission is hereby granted, free of charge, to any person obtaining a copy
8+
of this software and associated documentation files (the "Software"), to deal
9+
in the Software without restriction, including without limitation the rights
10+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
copies of the Software, and to permit persons to whom the Software is
12+
furnished to do so, subject to the following conditions:
13+
14+
The above copyright notice and this permission notice shall be included in all
15+
copies or substantial portions of the Software.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
SOFTWARE.

Diff for: NuGet.config

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<packageSources>
4+
<clear />
5+
<add key="dotnet-core" value="https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json" />
6+
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
7+
</packageSources>
8+
</configuration>

Diff for: THIRD-PARTY-NOTICES.TXT

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.NET Core uses third-party libraries or other resources that may be
2+
distributed under licenses different than the .NET Core software.
3+
4+
In the event that we accidentally failed to list a required notice, please
5+
bring it to our attention. Post an issue or email us:
6+
7+
8+
9+
The attached notices are provided for information only.
10+
11+
No notices are provided at this time.

Diff for: XHarness.sln

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 15
4+
VisualStudioVersion = 15.0.27912.0
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "XHarness", "src\XHarness\XHarness.csproj", "{0D23A41B-2626-4703-9E4A-87C07F69B0B2}"
7+
EndProject
8+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{A275E4CF-6AF3-439A-B72B-A2EDAE49A5C6}"
9+
ProjectSection(SolutionItems) = preProject
10+
global.json = global.json
11+
EndProjectSection
12+
EndProject
13+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XHarness.Tests", "tests\XHarness.Tests\XHarness.Tests.csproj", "{6BD2B121-CAB1-42F2-83A6-82A0F51E6B37}"
14+
EndProject
15+
Global
16+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
17+
Debug|Any CPU = Debug|Any CPU
18+
Release|Any CPU = Release|Any CPU
19+
EndGlobalSection
20+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
21+
{0D23A41B-2626-4703-9E4A-87C07F69B0B2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
22+
{0D23A41B-2626-4703-9E4A-87C07F69B0B2}.Debug|Any CPU.Build.0 = Debug|Any CPU
23+
{0D23A41B-2626-4703-9E4A-87C07F69B0B2}.Release|Any CPU.ActiveCfg = Release|Any CPU
24+
{0D23A41B-2626-4703-9E4A-87C07F69B0B2}.Release|Any CPU.Build.0 = Release|Any CPU
25+
{6BD2B121-CAB1-42F2-83A6-82A0F51E6B37}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
26+
{6BD2B121-CAB1-42F2-83A6-82A0F51E6B37}.Debug|Any CPU.Build.0 = Debug|Any CPU
27+
{6BD2B121-CAB1-42F2-83A6-82A0F51E6B37}.Release|Any CPU.ActiveCfg = Release|Any CPU
28+
{6BD2B121-CAB1-42F2-83A6-82A0F51E6B37}.Release|Any CPU.Build.0 = Release|Any CPU
29+
EndGlobalSection
30+
GlobalSection(SolutionProperties) = preSolution
31+
HideSolutionNode = FALSE
32+
EndGlobalSection
33+
GlobalSection(ExtensibilityGlobals) = postSolution
34+
SolutionGuid = {56D5F4DA-F710-4026-8F49-4A903BCAA9B5}
35+
EndGlobalSection
36+
EndGlobal

Diff for: azure-pipelines.yml

+97
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
variables:
2+
- template: eng/common-variables.yml
3+
- name: Build.Repository.Clean
4+
value: true
5+
- name: _HelixType
6+
value: build/product
7+
- name: _HelixSource
8+
value: pr/dotnet/xharness/$(Build.SourceBranch)
9+
- name: _HelixTestType
10+
value: test/product/
11+
- name: _XUnitProject
12+
value: $(Build.SourcesDirectory)/tests/XHarness.Tests/XHarness.Tests.csproj
13+
- name: _XUnitTargetFramework
14+
value: netcoreapp3.1
15+
- name: _XUnitRunnerVersion
16+
value: 2.4.1
17+
- name: _DotNetCliPackageType
18+
value: sdk
19+
- name: _DotNetCliVersion
20+
value: 3.1.101
21+
- name: _HelixAccessToken
22+
value: ''
23+
24+
# CI and PR triggers
25+
trigger:
26+
- master
27+
28+
pr:
29+
- master
30+
31+
jobs:
32+
- template: /eng/common/templates/job/job.yml
33+
parameters:
34+
name: Windows_NT
35+
enableTelemetry: true
36+
enablePublishBuildArtifacts: true
37+
helixRepo: dotnet/xharness
38+
pool:
39+
${{ if eq(variables._RunAsInternal, True) }}:
40+
name: NetCoreInternal-Pool
41+
queue: BuildPool.Server.Amd64.VS2019
42+
${{ if eq(variables._RunAsPublic, True) }}:
43+
name: NetCorePublic-Pool
44+
queue: BuildPool.Server.Amd64.VS2019.Open
45+
strategy:
46+
matrix:
47+
debug_configuration:
48+
_BuildConfig: Debug
49+
release_configuration:
50+
_BuildConfig: Release
51+
steps:
52+
- script: eng\common\cibuild.cmd
53+
-configuration $(_BuildConfig)
54+
-prepareMachine
55+
$(_InternalBuildArgs)
56+
name: Build
57+
displayName: Build
58+
condition: succeeded()
59+
- task: PublishBuildArtifacts@1
60+
displayName: Publish Logs to VSTS
61+
inputs:
62+
PathtoPublish: '$(Build.SourcesDirectory)/artifacts/log/$(_BuildConfig)'
63+
PublishLocation: Container
64+
ArtifactName: $(Agent.Os)_$(Agent.JobName)
65+
continueOnError: true
66+
condition: always()
67+
68+
- template: /eng/common/templates/job/job.yml
69+
parameters:
70+
name: OSX
71+
enableTelemetry: true
72+
enablePublishBuildArtifacts: true
73+
helixRepo: dotnet/xharness
74+
pool:
75+
name: Hosted macOS
76+
strategy:
77+
matrix:
78+
debug_configuration:
79+
_BuildConfig: Debug
80+
release_configuration:
81+
_BuildConfig: Release
82+
steps:
83+
- script: eng/common/cibuild.sh
84+
--configuration $(_BuildConfig)
85+
--prepareMachine
86+
$(_InternalBuildArgs)
87+
name: Build
88+
displayName: Build
89+
condition: succeeded()
90+
- task: PublishBuildArtifacts@1
91+
displayName: Publish Logs to VSTS
92+
inputs:
93+
PathtoPublish: '$(Build.SourcesDirectory)/artifacts/log/$(_BuildConfig)'
94+
PublishLocation: Container
95+
ArtifactName: $(Agent.Os)_$(Agent.JobName)
96+
continueOnError: true
97+
condition: always()

Diff for: build.sh

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env bash
2+
3+
source="${BASH_SOURCE[0]}"
4+
5+
# resolve $SOURCE until the file is no longer a symlink
6+
while [[ -h $source ]]; do
7+
scriptroot="$( cd -P "$( dirname "$source" )" && pwd )"
8+
source="$(readlink "$source")"
9+
10+
# if $source was a relative symlink, we need to resolve it relative to the path where the
11+
# symlink file was located
12+
[[ $source != /* ]] && source="$scriptroot/$source"
13+
done
14+
15+
scriptroot="$( cd -P "$( dirname "$source" )" && pwd )"
16+
"$scriptroot/eng/common/build.sh" --build --restore $@

Diff for: eng/Version.Details.xml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Dependencies>
3+
<ProductDependencies>
4+
</ProductDependencies>
5+
<ToolsetDependencies>
6+
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="5.0.0-beta.20167.1">
7+
<Uri>https://github.com/dotnet/arcade</Uri>
8+
<Sha>76778a412f34ee621bf7dcf2aa6e49db0c7a6a46</Sha>
9+
</Dependency>
10+
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="5.0.0-beta.20167.1">
11+
<Uri>https://github.com/dotnet/arcade</Uri>
12+
<Sha>76778a412f34ee621bf7dcf2aa6e49db0c7a6a46</Sha>
13+
</Dependency>
14+
</ToolsetDependencies>
15+
</Dependencies>

Diff for: eng/Versions.props

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<VersionPrefix>1.0.0</VersionPrefix>
5+
<PreReleaseVersionLabel>prerelease</PreReleaseVersionLabel>
6+
</PropertyGroup>
7+
</Project>

Diff for: eng/common-variables.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
variables:
2+
# Cannot use key:value syntax in root defined variables
3+
- name: _TeamName
4+
value: DotNetCore
5+
- name: HelixApiAccessToken
6+
value: ''
7+
- name: _RunAsPublic
8+
value: True
9+
- name: _RunAsInternal
10+
value: False
11+
- name: _InternalBuildArgs
12+
value: ''
13+
14+
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
15+
- name: _RunAsPublic
16+
value: False
17+
- name: _RunAsInternal
18+
value: True
19+
- name: _SignType
20+
value: real
21+
# Publish-Build-Assets provides: MaestroAccessToken, BotAccount-dotnet-maestro-bot-PAT
22+
# DotNet-HelixApi-Access provides: HelixApiAccessToken
23+
- group: Publish-Build-Assets
24+
- group: DotNet-HelixApi-Access
25+
- group: SDL_Settings
26+
- name: _InternalBuildArgs
27+
value: /p:DotNetSignType=$(_SignType)
28+
/p:TeamName=$(_TeamName)
29+
/p:DotNetPublishUsingPipelines=true
30+
/p:OfficialBuildId=$(BUILD.BUILDNUMBER)

Diff for: eng/common/CIBuild.cmd

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@echo off
2+
powershell -ExecutionPolicy ByPass -NoProfile -command "& """%~dp0Build.ps1""" -restore -build -test -sign -pack -publish -ci %*"

Diff for: eng/common/PSScriptAnalyzerSettings.psd1

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
@{
2+
IncludeRules=@('PSAvoidUsingCmdletAliases',
3+
'PSAvoidUsingWMICmdlet',
4+
'PSAvoidUsingPositionalParameters',
5+
'PSAvoidUsingInvokeExpression',
6+
'PSUseDeclaredVarsMoreThanAssignments',
7+
'PSUseCmdletCorrectly',
8+
'PSStandardDSCFunctionsInResource',
9+
'PSUseIdenticalMandatoryParametersForDSC',
10+
'PSUseIdenticalParametersForDSC')
11+
}

Diff for: eng/common/README.md

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Don't touch this folder
2+
3+
uuuuuuuuuuuuuuuuuuuu
4+
u" uuuuuuuuuuuuuuuuuu "u
5+
u" u$$$$$$$$$$$$$$$$$$$$u "u
6+
u" u$$$$$$$$$$$$$$$$$$$$$$$$u "u
7+
u" u$$$$$$$$$$$$$$$$$$$$$$$$$$$$u "u
8+
u" u$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$u "u
9+
u" u$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$u "u
10+
$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $
11+
$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $
12+
$ $$$" ... "$... ...$" ... "$$$ ... "$$$ $
13+
$ $$$u `"$$$$$$$ $$$ $$$$$ $$ $$$ $$$ $
14+
$ $$$$$$uu "$$$$ $$$ $$$$$ $$ """ u$$$ $
15+
$ $$$""$$$ $$$$ $$$u "$$$" u$$ $$$$$$$$ $
16+
$ $$$$....,$$$$$..$$$$$....,$$$$..$$$$$$$$ $
17+
$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $
18+
"u "$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$" u"
19+
"u "$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$" u"
20+
"u "$$$$$$$$$$$$$$$$$$$$$$$$$$$$" u"
21+
"u "$$$$$$$$$$$$$$$$$$$$$$$$" u"
22+
"u "$$$$$$$$$$$$$$$$$$$$" u"
23+
"u """""""""""""""""" u"
24+
""""""""""""""""""""
25+
26+
!!! Changes made in this directory are subject to being overwritten by automation !!!
27+
28+
The files in this directory are shared by all Arcade repos and managed by automation. If you need to make changes to these files, open an issue or submit a pull request to https://github.com/dotnet/arcade first.

0 commit comments

Comments
 (0)