Commit Graph

712 Commits

Author SHA1 Message Date
Toni Solarin-Sodara 6209239d69 Merge pull request #441 from AArnott/fixPackageOutputPath
Fix PackageOutputPath in local builds
2019-06-02 21:12:23 +01:00
Toni Solarin-Sodara e5998d8fbd Merge pull request #451 from AArnott/versionPatch
Remove PATCH from version.json
2019-06-01 00:22:30 +01:00
Toni Solarin-Sodara 5a139b200f simple code cleanup 2019-05-29 23:49:19 +01:00
Toni Solarin-Sodara 556a1e59a7 ensure PublicRelease is false in nightly 2019-05-29 23:42:25 +01:00
Toni Solarin-Sodara ade55f27ca Merge pull request #447 from AArnott/dotnetFTW
Remove build.proj in favor of regular dotnet commands
2019-05-29 23:27:12 +01:00
Toni Solarin-Sodara 847044a84f Merge pull request #448 from MarcoRossignoli/collectorcoveragetest
Add coverage to coverlet.collector.dll tests
2019-05-29 23:13:10 +01:00
Toni Solarin-Sodara 60aca43bce Merge pull request #436 from AArnott/OnlyTriggerCIonMaster
Build *_validate branches on CI
2019-05-29 22:58:40 +01:00
Andrew Arnott 79566b1d8f Remove PATCH from version.json
This allows for simpler and more descriptive file versions.
2019-05-29 13:02:41 -06:00
Andrew Arnott 497c6c534d Remove redundant section 2019-05-29 10:28:46 -06:00
Andrew Arnott 8954971e51 Ignore coverage result files in test folder 2019-05-29 09:45:52 -06:00
Andrew Arnott b46cab34f5 Add sample test parameters
Co-Authored-By: Marco Rossignoli <marco.rossignoli@gmail.com>
2019-05-29 07:24:33 -06:00
Marco Rossignoli d9a224a9fa add coverage to collectors tests 2019-05-29 11:49:45 +02:00
Andrew Arnott 664eb7303a Remove build.proj in favor of regular dotnet commands
Simple removal of the build.proj file allows `dotnet` commands to just work without having to specify the sln file explicitly, which is really nice.

The build.proj was building all projects 3 times (build, test, and pack all rebuilt everything and repeated package restore, etc.), so it was slower than necessary anyway.

In its place:
1. folks can just use `dotnet build` or whatever command suits them.
1. Azure Pipelines simply executes dotnet commands, which I break up into 4 steps so the pipeline can show timings for each step, etc.

Because we use the Azure Pipelines DotNetCoreCLI task for running tests, the test results are automatically collected and reported as a searchable database.
Test results can be analyzed over time to see how they perform, which ones are unstable, etc.
2019-05-29 00:35:41 -06:00
Andrew Arnott 61a29aaf67 Fix PackageOutputPath in local builds
Define Configuration when undefined before using it. Otherwise packages build to just build\ instead of build\debug.
2019-05-28 23:32:51 -06:00
Marco Rossignoli 0dd56242f2 Merge pull request #440 from MarcoRossignoli/fixbuild
Fix build
2019-05-28 18:02:33 +02:00
Marco Rossignoli e8f023984b fix build 2019-05-28 17:57:44 +02:00
Marco Rossignoli cdfbd15cdd fix build 2019-05-28 17:52:38 +02:00
Toni Solarin-Sodara 3570fc95d0 Merge pull request #434 from AArnott/incrementalbuild
Fix `dotnet build` of a clean repo
2019-05-28 16:08:04 +01:00
Toni Solarin-Sodara 13c2e2b0c0 Merge pull request #437 from MarcoRossignoli/fixsourcelinkbug
[Bug fix]Fix "/p:UseSourceLink=true" bug
2019-05-28 16:03:17 +01:00
Toni Solarin-Sodara 1cbeee80bd Merge pull request #432 from AArnott/NoNuSpec
Replace checked in .nuspec file with generated one
2019-05-28 15:59:24 +01:00
Marco Rossignoli 28765d901e fix UseSourceLink bug 2019-05-27 17:11:32 +02:00
Andrew Arnott 8936397757 Resolve merge conflicts with master 2019-05-27 08:03:13 -06:00
Andrew Arnott 833d9a0eae Build *_validate branches on CI 2019-05-27 07:53:06 -06:00
Toni Solarin-Sodara b8abd2b9a3 Merge pull request #427 from AArnott/PinSdkVersion
Prefer modern UseDotNet task over obsolete DotNetCoreInstaller
2019-05-27 11:50:21 +01:00
Toni Solarin-Sodara 159c362017 Merge pull request #429 from AArnott/gitignore
Ignore msbuild.binlog
2019-05-27 11:48:15 +01:00
Toni Solarin-Sodara 13a1fd3a2f Merge pull request #428 from AArnott/OnlyTriggerCIonMaster
Only trigger CI on master branch
2019-05-27 11:47:38 +01:00
Toni Solarin-Sodara 57000af5cd Merge pull request #426 from AArnott/CollectArtifacts
Capture packages as build artifacts
2019-05-27 11:43:16 +01:00
Toni Solarin-Sodara 64717cb5ff Merge pull request #430 from AArnott/packable
Add missing IsTestProject and IsPackable properties
2019-05-27 11:34:48 +01:00
Andrew Arnott dfda81a1f4 Define RepoRoot property for simpler paths 2019-05-26 21:18:42 -06:00
Andrew Arnott f016c7b5bb Fix dotnet build of a clean repo
For a perfectly clean repo (git clean -fdx), `dotnet build` fails because some tests require that other projects have been built using build.proj first.

This change adds the necessary build ordering instructions so that the build tasks are always built before the tests that need them, and the tests are always run against the *latest* source code being tested rather than the last version that happened to be built with build.proj.
2019-05-26 21:18:42 -06:00
Andrew Arnott 4649985ac0 Replace checked in .nuspec file with generated one
All the redundancy between the .nuspec file and the .csproj file (both express and implied) is now removed. With it, I fix a few bugs:

1. The generated nuspec file includes the developmentDependency tag that was in the project file but not the checked in file.
1. The package now applies to *all* projects regardless of their target framework (well, so long as they're .netstandard1.0 compatible) instead of all projects rejecting this package unless they targeted .NET Core 2.0 or higher.

I also moved the .targets file into a folder structure within the project that resembles where it will appear in the package. This makes it more obvious that it belongs to the package when looking at the source code, and makes it easier to maintain the build/ folder in the package going forward because all files in it are included.

Fixes #431
2019-05-26 19:07:33 -06:00
Andrew Arnott 47bfd91071 Add missing IsTestProject and IsPackable properties
This lets us "pack" the solution instead of listing out each project individually, since projects know themselves whether they should be packable.
2019-05-26 18:22:11 -06:00
Andrew Arnott f19d035407 Ignore msbuild.binlog
msbuild.binlog is the default filename for msbuild logs when using the /bl switch.
2019-05-26 18:18:42 -06:00
Andrew Arnott 17dcdfd460 Prefer modern UseDotNet task over obsolete DotNetCoreInstaller
The `UseDotNet` task is newer and follows best practices from the
dotnet SDK team better than the older `DotNetCoreInstaller` task.

One significant difference between the two is that `UseDotNet` sets
`DOTNET_MULTILEVEL_LOOKUP=0`, such that once you use this task once, you have to
manually install *all* SDK/runtime versions that your pipeline requires.
This task *may* be used more than once in order to accomplish this.
This is actually a *good* thing, because it means your pipeline is more fully
self-describing, and less dependent on whatever versions the agents happen to
have installed at the time.
2019-05-26 18:04:32 -06:00
Toni Solarin-Sodara 02708bbaea Merge pull request #425 from MarcoRossignoli/nightly
Setup nightly build
2019-05-26 22:09:34 +01:00
Toni Solarin-Sodara 8dc1d27421 Update build.yml 2019-05-26 22:04:57 +01:00
Toni Solarin-Sodara 0b0cb15a26 Merge branch 'master' into nightly 2019-05-26 22:03:11 +01:00
Toni Solarin-Sodara b1c5dc2ddd Merge pull request #424 from AArnott/YamlTemplates
Move common build steps into template
2019-05-26 21:52:05 +01:00
Marco Rossignoli cd9f504328 setup nightly build 2019-05-26 17:29:44 +02:00
Andrew Arnott 13ebd958e4 Capture packages as build artifacts 2019-05-25 14:15:51 -06:00
Andrew Arnott 49d5dec1d0 Only trigger CI on master branch 2019-05-25 14:11:52 -06:00
Andrew Arnott 026ce8abdd Move common build steps into template 2019-05-25 13:54:00 -06:00
Marco Rossignoli 0271f5eef1 Merge pull request #419 from MarcoRossignoli/fixdoc
Fix VS test integration doc
2019-05-22 18:08:12 +02:00
Marco Rossignoli 8f781bc5d4 update 2019-05-22 15:58:05 +02:00
Marco Rossignoli 10163b524c fix doc 2019-05-22 15:08:57 +02:00
Marco Rossignoli a33ca0b595 Merge pull request #407 from MarcoRossignoli/troubleshootingguide
Add troubleshooting guide
2019-05-22 13:19:31 +02:00
Toni Solarin-Sodara 6524812074 Merge pull request #402 from vagisha-nidhi/DocumentationVSTestIntegration
Adding documetation for VSTest Integration
2019-05-21 11:08:51 +01:00
Toni Solarin-Sodara 87f4dda3de fix code formatting 2019-05-20 16:36:54 +01:00
Toni Solarin-Sodara b3e349e1e4 Merge pull request #410 from vagisha-nidhi/coverletDatacollectors
Coverlet Intergration with VSTest
2019-05-20 13:23:54 +01:00
Vagisha Nidhi 56855bc865 Unload module raise exception 2019-05-20 15:52:50 +05:30