Skip to content

Commit e25d08d

Browse files
nfbotjosesimoes
authored andcommitted
Switch to Azure Pipelines (#58)
1 parent a160f28 commit e25d08d

10 files changed

+87
-675
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
| Component | Build Status | NuGet Package |
1515
|:-|---|---|
1616
| 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/) |
17-
| 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) |
17+
| 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) |
1818

1919

2020
## Feedback and documentation

appveyor-discord.ps1

Lines changed: 0 additions & 82 deletions
This file was deleted.

appveyor.yml

Lines changed: 0 additions & 170 deletions
This file was deleted.

azure-pipelines.yml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
trigger:
2+
branches:
3+
include:
4+
- master
5+
- develop
6+
- release/*
7+
- refs/tags/*
8+
paths:
9+
exclude:
10+
- /*.md
11+
- .gitignore
12+
- appveyor.yml
13+
# waiting for feature to become available
14+
# tags:
15+
# include:
16+
# - v/*
17+
18+
pr:
19+
branches:
20+
include:
21+
- master
22+
- develop
23+
- release/*
24+
autoCancel: true
25+
26+
# add nf-tools repo to resources (for Azure Pipelines templates)
27+
resources:
28+
repositories:
29+
- repository: templates
30+
type: github
31+
name: nanoframework/nf-tools
32+
endpoint: nfbot
33+
34+
pool:
35+
vmImage: 'VS2017-Win2016'
36+
37+
variables:
38+
solution: '**/source/*.sln'
39+
buildPlatform: 'Any CPU'
40+
buildConfiguration: 'Release'
41+
nugetPackageName: 'nanoFramework.CoreLibrary'
42+
repoName: 'lib-CoreLibrary'
43+
44+
steps:
45+
46+
# step from template @ nf-tools repo
47+
# all build, update and publish steps
48+
- template: azure-pipelines-templates/class-lib-build.yml@templates
49+
parameters:
50+
sourceFileName: 'corlib_native.cpp'
51+
classLibName: 'CoreLibrary'
52+
53+
# update dependencies
54+
- task: UpdatenFDependencies@1
55+
inputs:
56+
gitHubToken: $(GitHubToken)
57+
repositoriesToUpdate: |
58+
lib-nanoFramework.Devices.OneWire
59+
lib-nanoFramework.Runtime.Events
60+
lib-nanoFramework.Runtime.Native
61+
lib-Windows.Storage.Streams
62+
lib-Windows.Devices.Adc
63+
lib-Windows.Devices.I2c
64+
lib-Windows.Devices.Pwm
65+
lib-Windows.Devices.Spi
66+
lib-nanoFramework.Devices.OneWire
67+
lib-nanoFramework.Networking.Sntp
68+
lib-nanoFramework.Hardware.Stm32
69+
lib-nanoFramework.System.Math
70+
condition: and( succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v') )
71+
displayName: Update dependent class libs
72+
73+
# step from template @ nf-tools repo
74+
# report error
75+
- template: azure-pipelines-templates/discord-webhook-task.yml@templates
76+
parameters:
77+
status: 'failure'
78+
webhookUrl: '$(DiscordWebhook)'
79+
message: ''

0 commit comments

Comments
 (0)