Skip to content
This repository has been archived by the owner on Apr 19, 2022. It is now read-only.

Update project #1

Merged
merged 1 commit into from
Dec 6, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions GitVersion.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
next-version: 1.0.0
assembly-versioning-scheme: MajorMinorPatch
build-metadata-padding: 3
legacy-semver-padding: 3
assembly-informational-format: '{LegacySemVerPadded}'
major-version-bump-message: '\+semver:\s?(breaking|major)'
minor-version-bump-message: '\+semver:\s?(feature|minor)'
patch-version-bump-message: '\+semver:\s?(fix|patch)'
commit-message-incrementing: MergeMessageOnly
branches:
master:
mode: ContinuousDelivery
tag:
increment: Patch
prevent-increment-of-merged-branch-version: true
track-merge-target: false
develop:
mode: ContinuousDeployment
tag: preview
increment: Minor
prevent-increment-of-merged-branch-version: false
track-merge-target: true
release:
tag: rc
(pull|pull\-requests|pr)[/-]:
tag: alpha
ignore:
sha: []
332 changes: 302 additions & 30 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,302 @@
version: 1.0.{build}
pull_requests:
do_not_increment_build_number: true
image: Visual Studio 2017
clone_depth: 1
install:
- ps: .\install-vsix-appveyor.ps1
build_script:
- ps: >-

nuget restore source\nanoFramework.Windows.Devices.Spi.sln

msbuild source\nanoFramework.Windows.Devices.Spi.sln /p:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"

artifacts:
- path: '**\bin\Release\*.nupkg'
name: Nuget Packages
deploy:
- provider: NuGet
api_key:
secure: NSRDXbS8tmzOy4wStGuO3yQMKI8Sk10vF8iQtz9ZDXEnHfwnuDdnXbr/Kno3MMvY
skip_symbols: true
notifications:
- provider: Slack
auth_token:
secure: 2tqAJTTbN2dm24Vrwo5TXun3Vxc34R5G9l7o3pK3xEuKZAzxx3nbP2yGkMI/kl3+NxHXknjBfZnkhZC5eLYBHb+jO7YVUZwPYOfC/ZGy5HU=
channel: '#build-monitor'
on_build_status_changed: true
on_build_success: false
on_build_failure: false
# configuration for "master" branch
-
branches:
only:
- master

image: Visual Studio 2017

skip_branch_with_pr: true

# Skipping commits affecting specific files
skip_commits:
files:
- '**\AssemblyInfo.*'
- '**/*.md'
- 'LICENSE'
- dir/*
- '.gitignore'

build:
verbosity: minimal

test: off

environment:
APPVEYOR_SAVE_CACHE_ON_ERROR: true
matrix:
- RUBY_VERSION: 24
GitHubUserName:
secure: 7OBtVAMTodMWK20wg6pGnQ==
GitHubUserEmail:
secure: HeABB68Sn/Lhbd69C2cUcfWv0ab/rMDEcOLvcxf8gGw=
GitHubToken:
secure: WOqlCsnwTzfDPJFoNV/h8mEESIpG/9uFn1u6oE8hGZtXwIQQlsY+NyyLt9Y5xoFn

init:
- git config --global core.autocrlf true
- git config --global credential.helper store
- ps: Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:GitHubToken):x-oauth-basic@github.com`n"
- git config --global user.email "%GitHubUserEmail%"
- git config --global user.name "%GitHubUserName%"

install:
- set PATH=C:\Ruby%RUBY_VERSION%\bin;%PATH%
- gem install github_changelog_generator --quiet --no-ri --no-rdoc
# - bundle install
- choco install gitversion.portable -pre -y
- ps: .\install-vsix-appveyor.ps1

before_build:
- ps: >-

nuget restore source\nanoFramework.Windows.Devices.Spi.sln

gitversion /l console /output buildserver /updateAssemblyInfo /ensureassemblyinfo

build_script:
- ps: >-

msbuild source\nanoFramework.Windows.Devices.Spi.sln /p:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"

before_deploy:
# need this to keep ruby happy
- ps: md c:\tmp
- bundle exec github_changelog_generator --token %GitHubToken%
# add here the updated changelog and the updated assembly info files
- git add .
- git commit --amend --no-edit

artifacts:
- path: '**\bin\Release\*.nupkg'
name: Nuget_Packages

deploy:
- provider: NuGet
api_key:
secure: NSRDXbS8tmzOy4wStGuO3yQMKI8Sk10vF8iQtz9ZDXEnHfwnuDdnXbr/Kno3MMvY
skip_symbols: true
on:
appveyor_repo_tag: true
- provider: GitHub
tag: v$(GitVersion_NuGetVersionV2)
release: nanoFramework Core Library v$(gitversion_semver)
description: '[CHANGELOG.md](https://github.com/nanoframework/lib-nanoFramework.Windows.Devices.Spi/blob/master/CHANGELOG.md)\n\n## Install from NuGet\n\nThe following NuGet packages are available for download from this release\n\n:package: [.NET](https://www.nuget.org/packages/nanoFramework.Windows.Devices.Spi/$(GitVersion_NuGetVersionV2)) v$(GitVersion_NuGetVersionV2)'
auth_token:
secure: DNixoFFE+pGlwyhj7McfZoln42vOmj0iY1iNV9zXEr3y0NpXlOIgL8k5ehzlFM1S
artifact: Nuget_Packages
draft: true
prerelease: true
force_update: true

notifications:
- provider: Slack
auth_token:
secure: 2tqAJTTbN2dm24Vrwo5TXun3Vxc34R5G9l7o3pK3xEuKZAzxx3nbP2yGkMI/kl3+NxHXknjBfZnkhZC5eLYBHb+jO7YVUZwPYOfC/ZGy5HU=
channel: '#build-monitor'
on_build_status_changed: true
on_build_success: false
on_build_failure: false

cache:
- source\packages -> **source\packages.config
- C:\ProgramData\chocolatey\bin -> appveyor.yml
- C:\ProgramData\chocolatey\lib -> appveyor.yml


####################################
# configuration for develop branches
-
branches:
only:
- /dev.*/

image: Visual Studio 2017

skip_branch_with_pr: true

# Do not build on tags
skip_tags: false

test: off

pull_requests:
do_not_increment_build_number: true

# Skipping commits affecting specific files
skip_commits:
files:
- '**\AssemblyInfo.*'
- '**/*.md'
- 'LICENSE'
- dir/*
- '.gitignore'

build:
verbosity: minimal

install:
- choco install gitversion.portable -pre -y
- ps: .\install-vsix-appveyor.ps1

before_build:
- ps: >-

nuget restore source\nanoFramework.Windows.Devices.Spi.sln

gitversion /l console /output buildserver /updateAssemblyInfo /ensureassemblyinfo

build_script:
- ps: >-

msbuild source\nanoFramework.Windows.Devices.Spi.sln /p:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"

on_success:
# for this environment variable to work here it has to be set in AppVeyor UI
- nuget push source\Nuget.Windows.Devices.Spi\bin\Release\nanoFramework.Windows.Devices.Spi.%GitVersion_NuGetVersionV2%.nupkg %MyGetToken% -Source https://www.myget.org/F/nanoframework-dev/api/v2/package
- nuget push source\Nuget.Windows.Devices.Spi.DELIVERABLES\bin\Release\nanoFramework.Windows.Devices.Spi.DELIVERABLES.%GitVersion_NuGetVersionV2%.nupkg %MyGetToken% -Source https://www.myget.org/F/nanoframework-dev/api/v2/package

artifacts:
- path: '**\bin\Release\*.nupkg'
name: Nuget_Packages

deploy:
# the provider is actually MyGet but works the same as NuGet
- provider: NuGet
server: https://www.myget.org/F/nanoframework-dev/api/v2/package
api_key:
secure: 0drE56FivPFYI3oVZWcVFTpjOXSqyjT6kGangIxFRcRLqMhV3lQHqUButuuiPM+N
skip_symbols: true
- provider: GitHub
tag: v$(GitVersion_NuGetVersionV2)
release: nanoFramework Core Library v$(gitversion_semver)
description: '[CHANGELOG.md](https://github.com/nanoframework/lib-Windows.Devices.Spi/blob/master/CHANGELOG.md)\n\n## Install from NuGet\n\nThe following NuGet packages are available for download from this release\n\n:package: [.NET](https://www.nuget.org/packages/nanoFramework.Windows.Devices.Spi/$(GitVersion_NuGetVersionV2)) v$(GitVersion_NuGetVersionV2)'
auth_token:
secure: DNixoFFE+pGlwyhj7McfZoln42vOmj0iY1iNV9zXEr3y0NpXlOIgL8k5ehzlFM1S
artifact: Nuget_Packages
draft: true
prerelease: true
force_update: true

notifications:
- provider: Slack
auth_token:
secure: 2tqAJTTbN2dm24Vrwo5TXun3Vxc34R5G9l7o3pK3xEuKZAzxx3nbP2yGkMI/kl3+NxHXknjBfZnkhZC5eLYBHb+jO7YVUZwPYOfC/ZGy5HU=
channel: '#build-monitor'
on_build_status_changed: true
on_build_success: false
on_build_failure: false

cache:
- source\packages -> **source\packages.config
- C:\ProgramData\chocolatey\bin -> appveyor.yml
- C:\ProgramData\chocolatey\lib -> appveyor.yml

############################################
# configuration for release candidate branch
-
branches:
only:
- release.*

image: Visual Studio 2017

skip_branch_with_pr: true

# OK to get only last commit as we don't need history
clone_depth: 1

# Skipping commits affecting specific files
skip_commits:
files:
- '**\AssemblyInfo.*'
- '**/*.md'
- 'LICENSE'
- dir/*
- '.gitignore'

build:
verbosity: minimal

test: off

environment:
matrix:
- RUBY_VERSION: 24
GitHubUserName:
secure: 7OBtVAMTodMWK20wg6pGnQ==
GitHubUserEmail:
secure: HeABB68Sn/Lhbd69C2cUcfWv0ab/rMDEcOLvcxf8gGw=
GitHubToken:
secure: WOqlCsnwTzfDPJFoNV/h8mEESIpG/9uFn1u6oE8hGZtXwIQQlsY+NyyLt9Y5xoFn

init:
- git config --global core.autocrlf true
- git config --global credential.helper store
- ps: Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:GitHubToken):x-oauth-basic@github.com`n"
- git config --global user.email "%GitHubUserEmail%"
- git config --global user.name "%GitHubUserName%"

install:
- set PATH=C:\Ruby%RUBY_VERSION%\bin;%PATH%
- bundle config --local path vendor/bundle
- gem install bundler --quiet --no-ri --no-rdoc
- gem install github_changelog_generator --quiet --no-ri --no-rdoc
# - bundle install
- choco install gitversion.portable -pre -y
- ps: .\install-vsix-appveyor.ps1

before_build:
- ps: >-

nuget restore source\nanoFramework.Windows.Devices.Spi.sln

gitversion /l console /output buildserver /updateAssemblyInfo /ensureassemblyinfo

build_script:
- ps: >-

msbuild source\nanoFramework.Windows.Devices.Spi.sln /p:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"

before_deploy:
# need this to keep ruby happy
- ps: md c:\tmp
- bundle exec github_changelog_generator --token %GitHubToken%
# add here the updated changelog and the updated assembly info files
- git add .
- git commit --amend --no-edit

artifacts:
- path: '**\bin\Release\*.nupkg'
name: Nuget_Packages

deploy:
- provider: NuGet
api_key:
secure: NSRDXbS8tmzOy4wStGuO3yQMKI8Sk10vF8iQtz9ZDXEnHfwnuDdnXbr/Kno3MMvY
skip_symbols: true

- provider: GitHub
tag: v$(GitVersion_NuGetVersionV2)
release: nanoFramework Core Library v$(gitversion_semver)
description: '[CHANGELOG.md](https://github.com/nanoframework/lib-Windows.Devices.Spi/blob/master/CHANGELOG.md)\n\n## Install from NuGet\n\nThe following NuGet packages are available for download from this release\n\n:package: [.NET](https://www.nuget.org/packages/nanoFramework.Windows.Devices.Spi/$(GitVersion_NuGetVersionV2)) v$(GitVersion_NuGetVersionV2)'
auth_token:
secure: DNixoFFE+pGlwyhj7McfZoln42vOmj0iY1iNV9zXEr3y0NpXlOIgL8k5ehzlFM1S
artifact: Nuget_Packages
draft: true
prerelease: true
force_update: true

notifications:
- provider: Slack
auth_token:
secure: 2tqAJTTbN2dm24Vrwo5TXun3Vxc34R5G9l7o3pK3xEuKZAzxx3nbP2yGkMI/kl3+NxHXknjBfZnkhZC5eLYBHb+jO7YVUZwPYOfC/ZGy5HU=
channel: '#build-monitor'
on_build_status_changed: true
on_build_success: false
on_build_failure: false

cache:
- source\packages -> **source\packages.config
- C:\ProgramData\chocolatey\bin -> appveyor.yml
- C:\ProgramData\chocolatey\lib -> appveyor.yml
5 changes: 3 additions & 2 deletions source/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("1.0.0.19")]
[assembly: AssemblyFileVersion("1.0.0.19")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0.0")]
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@
<Link>content\disasm\%(RecursiveDir)%(Filename)%(Extension)</Link>
</Content>
</ItemGroup>
<ItemGroup>
<Dependency Include="nanoFramework.CoreLibrary">
<Version>[1.0.0-preview038]</Version>
</Dependency>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>F117EC96-3B2D-4F2F-8683-BF72CA910624</ProjectGuid>
</PropertyGroup>
Expand All @@ -42,7 +47,7 @@
<Import Project="$(NuProjPath)\NuProj.props" Condition="Exists('$(NuProjPath)\NuProj.props')" />
<PropertyGroup Label="Configuration">
<Id>nanoFramework.Windows.Devices.Spi.DELIVERABLES</Id>
<Version>1.0.0-preview019</Version>
<Version>$(GitVersion_NuGetVersionV2)</Version>
<Title>nanoFramework.Windows.Devices.Spi.DELIVERABLES</Title>
<Authors>nanoFramework project contributors</Authors>
<Owners>nanoFramework project contributors</Owners>
Expand Down
Loading