Permalink
Browse files

AppVeyor improvements

  • Loading branch information...
andrew-boyarshin committed Sep 17, 2018
1 parent 2b5faca commit 556a44193667187506939939138fd161469a316f
@@ -12,6 +12,15 @@
<PackageTags>dotnet csproj fsproj vbproj msbuild conversion vs2015 vs14 vs15 vs2017</PackageTags>
<Version>3.0.2</Version>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<!-- SourceLink -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-63127-02" PrivateAssets="All"/>
</ItemGroup>
</Project>
@@ -1,20 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks Condition="$(Pack) != 'true'">net461;netcoreapp2.1</TargetFrameworks>
<TargetFramework Condition="$(Pack) == 'true'">netcoreapp2.1</TargetFramework>
<PackAsTool Condition="$(Pack) == 'true'">True</PackAsTool>
<PackageId>Project2015To2017.Cli</PackageId>
<Product>Project2015To2017.Cli</Product>
<OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup Condition="$(Pack) != 'true'">
<TargetFrameworks>net461;netcoreapp2.1</TargetFrameworks>
</PropertyGroup>
<PropertyGroup Condition="$(Pack) == 'true'">
<ToolCommandName>csproj-to-2017</ToolCommandName>
<PackAsTool>True</PackAsTool>
<TargetFramework>netcoreapp2.1</TargetFramework>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
</PropertyGroup>
<ItemGroup>
@@ -1,6 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks Condition="$(Pack) != 'true'">net461;netcoreapp2.1</TargetFrameworks>
<TargetFramework Condition="$(Pack) == 'true'">netcoreapp2.1</TargetFramework>
<PackAsTool Condition="$(Pack) == 'true'">True</PackAsTool>
<AssemblyName>dotnet-migrate-2017</AssemblyName>
<PackageId>Project2015To2017.Migrate2017.Tool</PackageId>
<Product>Project2015To2017.Migrate2017.Tool</Product>
@@ -11,16 +15,6 @@
</RestoreAdditionalProjectSources>
</PropertyGroup>
<PropertyGroup Condition="$(Pack) != 'true'">
<TargetFrameworks>net461;netcoreapp2.1</TargetFrameworks>
</PropertyGroup>
<PropertyGroup Condition="$(Pack) == 'true'">
<PackAsTool>True</PackAsTool>
<TargetFramework>netcoreapp2.1</TargetFramework>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="DotNet.Glob" Version="2.1.1" />
<PackageReference Include="Microsoft.DotNet.Cli.CommandLine" Version="0.2.1-alpha-63223-01" />
@@ -2,7 +2,7 @@
<PropertyGroup>
<TargetFrameworks>netstandard1.3;netstandard2.0</TargetFrameworks>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageId>Project2015To2017</PackageId>
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);CopyProjectReferencesToPackage</TargetsForTfmSpecificBuildOutput>
</PropertyGroup>
@@ -1,4 +1,4 @@
version: 1.5.{build}
version: 4.0.{build}
skip_tags: true
image:
- Visual Studio 2017
@@ -7,19 +7,22 @@ configuration:
pull_requests:
do_not_increment_build_number: true
skip_branch_with_pr: true
before_build:
- cmd: dotnet restore
build:
parallel: true
verbosity: minimal
before_test:
- cmd: dotnet test "Project2015To2017.Tests\Project2015To2017.Tests.csproj"
environment:
LOGGER: '/l:"C:\Program Files\AppVeyor\BuildAgent\dotnetcore\Appveyor.MSBuildLogger.dll"'
LIBRARY: './Project2015To2017/Project2015To2017.csproj'
LEGACYCLITOOL: './Project2015To2017.Console/Project2015To2017.Console.csproj'
CLITOOL: './Project2015To2017.Migrate2017.Tool/Project2015To2017.Migrate2017.Tool.csproj'
build_script:
- cmd: dotnet build %LOGGER% -v m -c %configuration%
- cmd: dotnet pack %LIBRARY% %LOGGER% -v m -c %configuration% --no-build
- cmd: dotnet pack %LEGACYCLITOOL% %LOGGER% -v m -c %configuration% --no-build /p:Pack=true
- cmd: dotnet pack %CLITOOL% %LOGGER% -v m -c %configuration% --no-build /p:Pack=true
- cmd: dotnet publish %CLITOOL% %LOGGER% -v m -c %configuration% -f netcoreapp2.1 -o ./out/netcoreapp2.1 --no-build
- cmd: dotnet publish %CLITOOL% %LOGGER% -v m -c %configuration% -f net461 -o ./out/net461 --no-build
after_build:
- cmd: dotnet build /p:Pack=true -c Release ./Project2015To2017.Console/Project2015To2017.Console.csproj
- cmd: dotnet publish -f netcoreapp2.1 -c Release -o ./out/netcoreapp2.1 ./Project2015To2017.Migrate2017.Tool/Project2015To2017.Migrate2017.Tool.csproj
- cmd: dotnet publish -f net461 -c Release -o ./out/net461 ./Project2015To2017.Migrate2017.Tool/Project2015To2017.Migrate2017.Tool.csproj
- cmd: 7z a ./Project2015To2017/out/dotnet-migrate-2017.zip ./Project2015To2017.Migrate2017.Tool/out/*
- cmd: dotnet build /p:Pack=true -c Release ./Project2015To2017.Migrate2017.Tool/Project2015To2017.Migrate2017.Tool.csproj
- cmd: 7z a ./Project2015To2017/out/dotnet-migrate-2017.zip ./Project2015To2017.Migrate2017.Tool/out/*
test_script:
- cmd: dotnet test Project2015To2017.Tests/Project2015To2017.Tests.csproj -c %configuration% --no-build --test-adapter-path:. --logger:Appveyor
artifacts:
- path: ./Project2015To2017.Console/bin/$(configuration)/Project2015To2017.Cli.**.nupkg

0 comments on commit 556a441

Please sign in to comment.