From c6ba21efc14a145532fef8887ef6c81e9f071830 Mon Sep 17 00:00:00 2001 From: Ryan Brandenburg Date: Fri, 27 Jul 2018 16:34:21 -0700 Subject: [PATCH] Add VSTS ci pipeline (#893) --- .vsts-pipelines/builds/ci-internal.yml | 13 +++++++++++++ .vsts-pipelines/builds/ci-public.yml | 15 +++++++++++++++ .vsts-pipelines/templates/build-steps.yml | 17 +++++++++++++++++ test/Common.Tests/Common.Tests.csproj | 3 +-- 4 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 .vsts-pipelines/builds/ci-internal.yml create mode 100644 .vsts-pipelines/builds/ci-public.yml create mode 100644 .vsts-pipelines/templates/build-steps.yml diff --git a/.vsts-pipelines/builds/ci-internal.yml b/.vsts-pipelines/builds/ci-internal.yml new file mode 100644 index 0000000000..260baf4536 --- /dev/null +++ b/.vsts-pipelines/builds/ci-internal.yml @@ -0,0 +1,13 @@ +trigger: +- master +- release/* + +resources: + repositories: + - repository: buildtools + type: git + name: aspnet-BuildTools + ref: refs/heads/release/2.2 + +phases: +- template: ../templates/build-steps.yml diff --git a/.vsts-pipelines/builds/ci-public.yml b/.vsts-pipelines/builds/ci-public.yml new file mode 100644 index 0000000000..0ed1a241ab --- /dev/null +++ b/.vsts-pipelines/builds/ci-public.yml @@ -0,0 +1,15 @@ +trigger: +- master +- release/* + +# See https://github.com/aspnet/BuildTools +resources: + repositories: + - repository: buildtools + type: github + endpoint: DotNet-Bot GitHub Connection + name: aspnet/BuildTools + ref: refs/heads/release/2.2 + +phases: +- template: ../templates/build-steps.yml diff --git a/.vsts-pipelines/templates/build-steps.yml b/.vsts-pipelines/templates/build-steps.yml new file mode 100644 index 0000000000..40843183ea --- /dev/null +++ b/.vsts-pipelines/templates/build-steps.yml @@ -0,0 +1,17 @@ +phases: +- template: .vsts-pipelines/templates/phases/default-build.yml@buildtools + parameters: + agentOs: Windows + beforeBuild: + - powershell: "& ./tools/update_schema.ps1" + displayName: Update ANCM schema + - powershell: Restart-Service w3svc + displayName: Restart IIS + +- template: .vsts-pipelines/templates/phases/default-build.yml@buildtools + parameters: + agentOs: macOS + +- template: .vsts-pipelines/templates/phases/default-build.yml@buildtools + parameters: + agentOs: Linux diff --git a/test/Common.Tests/Common.Tests.csproj b/test/Common.Tests/Common.Tests.csproj index 50b978f517..ede80732ee 100644 --- a/test/Common.Tests/Common.Tests.csproj +++ b/test/Common.Tests/Common.Tests.csproj @@ -2,6 +2,7 @@ netcoreapp2.2 + false @@ -13,11 +14,9 @@ - -