Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
37bec47
Update path for xml output, reactivated github ci
Daniel127 Sep 19, 2019
1e4f64f
Merge pull request feature/ci-update
Daniel127 Sep 19, 2019
0cab2c6
Updated CI pipeline for publish Nuget
Daniel127 Sep 22, 2019
9582a70
Stop pipeline with script error
Daniel127 Sep 22, 2019
8728099
Changed tasks order
Daniel127 Sep 22, 2019
2f45a7c
Updated variable
Daniel127 Sep 22, 2019
6b844eb
Updated use of variables
Daniel127 Sep 22, 2019
20faee1
Merge pull request #11 from Daniel127/feature/pipeline-cd
Daniel127 Sep 22, 2019
19755e7
Merge branch 'release/v0.0.1-alpha'
Daniel127 Sep 22, 2019
75b8e9f
Update azure-ci-release.yml
Daniel127 Sep 22, 2019
effa588
Update azure-ci-release.yml for Azure Pipelines
Daniel127 Sep 22, 2019
14e91b5
Update azure-ci-release.yml for Azure Pipelines
Daniel127 Sep 22, 2019
ad3aef4
Update azure-ci-release.yml for Azure Pipelines
Daniel127 Sep 22, 2019
00b709a
Update azure-ci-release.yml for Azure Pipelines
Daniel127 Sep 22, 2019
262c16c
Update azure-ci-release.yml for Azure Pipelines
Daniel127 Sep 22, 2019
6814802
Update azure-ci-release.yml for Azure Pipelines
Daniel127 Sep 22, 2019
a620dc6
Update azure-ci-release.yml for Azure Pipelines
Daniel127 Sep 22, 2019
a422989
Update azure-ci-release.yml for Azure Pipelines
Daniel127 Sep 22, 2019
e5cf52d
Updated packages and SDK from pipelines
Daniel127 Sep 23, 2019
ad0f8cf
Merge branch 'feature/update-net-core-3' into develop
Daniel127 Sep 23, 2019
2eeb9d4
Merge branch 'develop' into update-pipelines
Daniel127 Sep 23, 2019
6d8a29e
Updated git pipeline
Daniel127 Sep 23, 2019
490f0db
Merge branch 'feature/update-net-core-3' into develop
Daniel127 Sep 23, 2019
59f9e7b
Updated git pipeline
Daniel127 Sep 23, 2019
153d118
Merge branch 'feature/update-net-core-3' into develop
Daniel127 Sep 23, 2019
0b39ea5
Merge branch 'develop' into update-pipelines
Daniel127 Sep 23, 2019
863b51a
Update azure-ci-release.yml for Azure Pipelines
Daniel127 Sep 25, 2019
891e6c9
Update azure-ci-release.yml for Azure Pipelines
Daniel127 Sep 25, 2019
9170985
Update azure-ci-release.yml for Azure Pipelines
Daniel127 Sep 25, 2019
6036ef5
Update azure-ci-release.yml for Azure Pipelines
Daniel127 Sep 25, 2019
5061601
Update azure-ci-release.yml for Azure Pipelines
Daniel127 Sep 25, 2019
742d537
Update azure-ci-release.yml for Azure Pipelines
Daniel127 Sep 25, 2019
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
50 changes: 50 additions & 0 deletions .azure/workflows/azure-ci-development.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# ASP.NET Core

# Build and test ASP.NET Core projects targeting .NET Core.
# Add steps that run tests, create a NuGet package, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core

trigger:
- develop
- release/*

pr:
- master
- develop

pool:
vmImage: 'ubuntu-latest'

variables:
buildConfiguration: 'Debug'

steps:

# Install .NET Core SDK
- task: DotNetCoreInstaller@1
inputs:
version: '2.2.x'
- task: DotNetCoreInstaller@1
inputs:
version: '3.0.x'

# SonarCloud Prepare Analysis
- task: SonarCloudPrepare@1
inputs:
SonarCloud: 'SonarCloud Daniel127'
organization: 'daniel127'
scannerMode: 'MSBuild'
projectKey: 'semanticui-razor-components'
projectName: 'Semantic UI Razor Components'

# Build solution
- task: DotNetCoreCLI@2
inputs:
command: 'build'
arguments: '--configuration $(buildConfiguration)'

# SonarCloud analyze and publish results
- task: SonarCloudAnalyze@1
- task: SonarCloudPublish@1
inputs:
pollingTimeoutSec: '300'
31 changes: 22 additions & 9 deletions .azure/workflows/azure-ci-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@

trigger:
- master
- develop
- release/*

pr:
- master
- develop

pool:
vmImage: 'ubuntu-latest'
Expand All @@ -21,13 +15,18 @@ variables:

steps:

- task: Bash@3
inputs:
filePath: '.azure/workflows/configure-variables-release.sh'
failOnStderr: true

# Install .NET Core SDK
- task: DotNetCoreInstaller@1
inputs:
version: '2.2.402'
version: '2.2.x'
- task: DotNetCoreInstaller@1
inputs:
version: '3.0.100-rc1-014190'
version: '3.0.x'

# SonarCloud Prepare Analysis
- task: SonarCloudPrepare@1
Expand All @@ -48,4 +47,18 @@ steps:
- task: SonarCloudAnalyze@1
- task: SonarCloudPublish@1
inputs:
pollingTimeoutSec: '300'
pollingTimeoutSec: '300'

- task: DotNetCoreCLI@2
inputs:
command: 'pack'
packagesToPack: '**/QD.Components.Semantic.csproj'
configuration: '$(buildConfiguration)'
packDirectory: '$(Pipeline.Workspace)/nuget'
nobuild: true
versioningScheme: 'off'

- task: PublishPipelineArtifact@1
inputs:
targetPath: '$(Pipeline.Workspace)/nuget'
artifact: 'Package'
24 changes: 24 additions & 0 deletions .azure/workflows/configure-variables-release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash
function check_version() {
if [[ $1 =~ ^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-((0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*)(\.(0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*))*))?(\+([0-9a-zA-Z-]+(\.[0-9a-zA-Z-]+)*))?$ ]]; then
echo "$1"
else
echo ""
fi
}

echo "Configuring package version"

commitId=$BUILD_SOURCEVERSION

gitTagVersion="$(git describe --exact-match $commitId --abbrev=0 --tags --first-parent)"
appVersion=${gitTagVersion:1}
echo "Git version: $gitTagVersion"
echo "App version: $appVersion"

if [[ ! $(check_version ${appVersion}) ]]; then
exit 1;
fi

echo "##vso[task.setvariable variable=packageVersion]$appVersion"
echo "Finished"
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.0.100-rc1-014190
dotnet-version: 3.0.100
- name: Build with dotnet
run: dotnet build --configuration Release
run: dotnet build --configuration Debug
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Blazor" Version="3.0.0-preview9.19457.4" />
<PackageReference Include="Microsoft.AspNetCore.Blazor.Build" Version="3.0.0-preview9.19457.4" PrivateAssets="all" />
<PackageReference Include="Microsoft.AspNetCore.Blazor.HttpClient" Version="3.0.0-preview9.19457.4" />
<PackageReference Include="Microsoft.AspNetCore.Blazor.DevServer" Version="3.0.0-preview9.19457.4" PrivateAssets="all" />
<PackageReference Include="Microsoft.AspNetCore.Blazor" Version="3.0.0-preview9.19465.2" />
<PackageReference Include="Microsoft.AspNetCore.Blazor.Build" Version="3.0.0-preview9.19465.2" PrivateAssets="all" />
<PackageReference Include="Microsoft.AspNetCore.Blazor.HttpClient" Version="3.0.0-preview9.19465.2" />
<PackageReference Include="Microsoft.AspNetCore.Blazor.DevServer" Version="3.0.0-preview9.19465.2" PrivateAssets="all" />
</ItemGroup>

<ItemGroup>
Expand Down
24 changes: 17 additions & 7 deletions QD.Components.Semantic/QD.Components.Semantic.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,30 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<RazorLangVersion>3.0</RazorLangVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DocumentationFile>\QD.Components.Semantic.xml</DocumentationFile>
<PackageLicenseFile>LICENSE.md</PackageLicenseFile>
<RepositoryUrl>https://github.com/Daniel127/SemanticUI-Razor-Components</RepositoryUrl>
<PackageProjectUrl>https://github.com/Daniel127/SemanticUI-Razor-Components</PackageProjectUrl>
<RepositoryType>git</RepositoryType>
<PackageTags>Components;Component;Blazor;Razor;Semantic;UI</PackageTags>
<Authors>Daniel Quiñones</Authors>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DocumentationFile>\QD.Components.Semantic.xml</DocumentationFile>
<DocumentationFile>.\QD.Components.Semantic.xml</DocumentationFile>
</PropertyGroup>


<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components" Version="3.0.0-rc1.19457.4" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="3.0.0-rc1.19457.4" />
<PackageReference Include="Microsoft.AspNetCore.Components" Version="3.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="3.0.0" />
</ItemGroup>


<ItemGroup>
<None Include="..\LICENSE.md">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
</ItemGroup>

</Project>
Loading