Skip to content

Commit

Permalink
Migrate to VSTS (reactiveui#1613)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghuntley authored and Oren Novotny committed May 11, 2018
1 parent ff2b5a3 commit 66c207e
Show file tree
Hide file tree
Showing 11 changed files with 77 additions and 252 deletions.
25 changes: 17 additions & 8 deletions .vsts-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ steps:
inputs:
versionSpec: 4.6.2

- task: DotNetCoreCLI@2
inputs:
command: build
projects: script/setversion.csproj
arguments: -c Release
displayName: Set Version
condition: eq(variables['system.pullrequest.isfork'], false)

- powershell: |
nuget install SignClient -Version 0.9.1 -SolutionDir $(Build.SourcesDirectory) -Verbosity quiet -ExcludeVersion
.\build.cmd
Expand All @@ -26,61 +34,62 @@ steps:
SIGNCLIENT_SECRET: $(SignClientSecret)
SIGNCLIENT_USER: $(SignClientUser)
VSTS_ACCESS_TOKEN: $(System.AccessToken)
COVERALLS_TOKEN: $(COVERALLS_TOKEN)

- task: CopyFiles@2
inputs:
Contents: 'artifacts/*.nupkg'
TargetFolder: '$(build.artifactstagingdirectory)\packages'
flattenFolders: true
condition: always()
condition: eq(variables['system.pullrequest.isfork'], false)

- task: PublishBuildArtifacts@1
displayName: Publish Package Artifacts
inputs:
pathToPublish: '$(build.artifactstagingdirectory)\packages'
artifactType: container
artifactName: Packages
condition: always()
condition: eq(variables['system.pullrequest.isfork'], false)

- task: CopyFiles@2
inputs:
Contents: '**/*.binlog'
TargetFolder: '$(build.artifactstagingdirectory)\binlogs'
flattenFolders: true
condition: always()
condition: eq(variables['system.pullrequest.isfork'], false)

- task: PublishBuildArtifacts@1
displayName: Publish Logs
inputs:
pathToPublish: '$(build.artifactstagingdirectory)\binlogs'
artifactType: container
artifactName: Logs
condition: always()
condition: eq(variables['system.pullrequest.isfork'], false)

- task: CopyFiles@2
inputs:
Contents: '**/bin/*'
TargetFolder: '$(build.artifactstagingdirectory)\binaries'
condition: always()
condition: eq(variables['system.pullrequest.isfork'], false)

- task: PublishBuildArtifacts@1
displayName: Publish Binaries
inputs:
pathToPublish: '$(build.artifactstagingdirectory)\binaries'
artifactType: container
artifactName: Binaries
condition: always()
condition: eq(variables['system.pullrequest.isfork'], false)

- task: CopyFiles@2
inputs:
Contents: 'src/ReactiveUI.**/Events_*.cs'
TargetFolder: '$(build.artifactstagingdirectory)\Events'
condition: always()
condition: eq(variables['system.pullrequest.isfork'], false)

- task: PublishBuildArtifacts@1
displayName: Publish Generated Events
inputs:
pathToPublish: '$(build.artifactstagingdirectory)\Events'
artifactType: container
artifactName: Events
condition: always()
condition: eq(variables['system.pullrequest.isfork'], false)
16 changes: 0 additions & 16 deletions GitVersion.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![NuGet Stats](https://img.shields.io/nuget/v/reactiveui.svg)](https://www.nuget.org/packages/reactiveui) [![NuGet Stats](https://img.shields.io/nuget/vpre/reactiveui.svg)](https://www.nuget.org/packages/reactiveui) [![Build status](https://ci.appveyor.com/api/projects/status/jqfgxoaock7n23xm?svg=true)](https://ci.appveyor.com/project/dotnetfoundation/reactiveui)
[![NuGet Stats](https://img.shields.io/nuget/v/reactiveui.svg)](https://www.nuget.org/packages/reactiveui) [![NuGet Stats](https://img.shields.io/nuget/vpre/reactiveui.svg)](https://www.nuget.org/packages/reactiveui) [![Build status](https://dotnetfoundation.visualstudio.com/_apis/public/build/definitions/a5852744-a77d-4d76-a9d2-81ac1fdd5744/11/badge)](https://dotnetfoundation.visualstudio.com/ReactiveUI/ReactiveUI%20Team/_build/index?definitionId=11)
[![Coverage Status](https://coveralls.io/repos/github/reactiveui/ReactiveUI/badge.svg?branch=develop)](https://coveralls.io/github/reactiveui/ReactiveUI?branch=develop) [![#yourfirstpr](https://img.shields.io/badge/first--timers--only-friendly-blue.svg)](https://reactiveui.net/contribute) [![Pull Request Stats](http://www.issuestats.com/github/reactiveui/reactiveui/badge/pr?style=flat)](http://www.issuestats.com/github/reactiveui/reactiveui) [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Freactiveui%2FReactiveUI.svg?type=shield)](https://app.fossa.io/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Freactiveui%2FReactiveUI?ref=badge_shield)


Expand Down
2 changes: 1 addition & 1 deletion SignPackages.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
$currentDirectory = split-path $MyInvocation.MyCommand.Definition

# See if we have the ClientSecret available
if([string]::IsNullOrEmpty($env:SIGNCLIENT_SECRET)){
if([string]::IsNullOrWhitespace($env:SIGNCLIENT_SECRET)){
Write-Error "Client Secret not found, not signing packages";
[System.Environment]::Exit(1);
}
Expand Down
76 changes: 0 additions & 76 deletions appveyor.yml

This file was deleted.

Loading

0 comments on commit 66c207e

Please sign in to comment.