Skip to content

Commit

Permalink
Switch to Azure Pipelines (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
nfbot authored and josesimoes committed Nov 29, 2018
1 parent a160f28 commit e25d08d
Show file tree
Hide file tree
Showing 10 changed files with 87 additions and 675 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
| Component | Build Status | NuGet Package |
|:-|---|---|
| Core Library | [![Build status](https://ci.appveyor.com/api/projects/status/5b37qa4h0o2ci3db/branch/master?svg=true)](https://ci.appveyor.com/project/nfbot/lib-corelibrary/branch/master) | [![NuGet](https://img.shields.io/nuget/v/nanoFramework.CoreLibrary.svg)](https://www.nuget.org/packages/nanoFramework.CoreLibrary/) |
| Core Library (preview) | [![Build status](https://ci.appveyor.com/api/projects/status/5b37qa4h0o2ci3db/branch/develop?svg=true)](https://ci.appveyor.com/project/nfbot/lib-corelibrary/branch/develop) | [![MyGet Pre Release](https://img.shields.io/myget/nanoframework-dev/vpre/nanoFramework.CoreLibrary.svg)](https://www.myget.org/feed/nanoframework-dev/package/nuget/nanoFramework.CoreLibrary) |
| Core Library (preview) | [![Build Status](https://dev.azure.com/nanoframework/CoreLibrary/_apis/build/status/nanoframework.lib-CoreLibrary)](https://dev.azure.com/nanoframework/CoreLibrary/_build/latest?definitionId=24) | [![MyGet Pre Release](https://img.shields.io/myget/nanoframework-dev/vpre/nanoFramework.CoreLibrary.svg)](https://www.myget.org/feed/nanoframework-dev/package/nuget/nanoFramework.CoreLibrary) |


## Feedback and documentation
Expand Down
82 changes: 0 additions & 82 deletions appveyor-discord.ps1

This file was deleted.

170 changes: 0 additions & 170 deletions appveyor.yml

This file was deleted.

79 changes: 79 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
trigger:
branches:
include:
- master
- develop
- release/*
- refs/tags/*
paths:
exclude:
- /*.md
- .gitignore
- appveyor.yml
# waiting for feature to become available
# tags:
# include:
# - v/*

pr:
branches:
include:
- master
- develop
- release/*
autoCancel: true

# add nf-tools repo to resources (for Azure Pipelines templates)
resources:
repositories:
- repository: templates
type: github
name: nanoframework/nf-tools
endpoint: nfbot

pool:
vmImage: 'VS2017-Win2016'

variables:
solution: '**/source/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
nugetPackageName: 'nanoFramework.CoreLibrary'
repoName: 'lib-CoreLibrary'

steps:

# step from template @ nf-tools repo
# all build, update and publish steps
- template: azure-pipelines-templates/class-lib-build.yml@templates
parameters:
sourceFileName: 'corlib_native.cpp'
classLibName: 'CoreLibrary'

# update dependencies
- task: UpdatenFDependencies@1
inputs:
gitHubToken: $(GitHubToken)
repositoriesToUpdate: |
lib-nanoFramework.Devices.OneWire
lib-nanoFramework.Runtime.Events
lib-nanoFramework.Runtime.Native
lib-Windows.Storage.Streams
lib-Windows.Devices.Adc
lib-Windows.Devices.I2c
lib-Windows.Devices.Pwm
lib-Windows.Devices.Spi
lib-nanoFramework.Devices.OneWire
lib-nanoFramework.Networking.Sntp
lib-nanoFramework.Hardware.Stm32
lib-nanoFramework.System.Math
condition: and( succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v') )
displayName: Update dependent class libs

# step from template @ nf-tools repo
# report error
- template: azure-pipelines-templates/discord-webhook-task.yml@templates
parameters:
status: 'failure'
webhookUrl: '$(DiscordWebhook)'
message: ''
Loading

0 comments on commit e25d08d

Please sign in to comment.