Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Easy release management to nuget #19

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
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
25 changes: 25 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
; Check http://editorconfig.org/ for more informations
; Top-most EditorConfig file
; For VisualStudio 2015 https://visualstudiogallery.msdn.microsoft.com/c8bccfe2-650c-4b42-bc5c-845e21f96328
root = true

; 4-column space indentation
[*]
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
insert_final_newline = true

; Not change VS generated files
[*.{sln,csroj}]
trim_trailing_whitespace = false
insert_final_newline = false

[*.cs]
indent_size = 4

[*.csproj]
indent_size = 2

[*.nuspec]
indent_size = 2
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
251 changes: 243 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,244 @@
ProbabilisticDataStructures.v11.suo
ProbabilisticDataStructures/bin/
ProbabilisticDataStructures/obj/
TestProbabilisticDataStructures/bin/
TestProbabilisticDataStructures/obj/
TestResults/ProbabilisticDataStructures.TE.Tests.mdf
TestResults/ProbabilisticDataStructures.TE.Tests_log.ldf
TestResults/
#####################
## CURRENT PROJECT ##
#####################

*.orig

################
## Elders.Nyx ##
################
release.cmd
*/**/AssemblyInfo.cs

##############################################################
## Ignore Visual Studio temporary files, build results, and ##
## files generated by popular Visual Studio add-ons. ##
##############################################################

# Ignore most popular binaries in Windows
.exe
.dll

# Roslyn stuff
*.sln.ide
*.ide/

# User-specific files
*.suo
*.user
*.userosscache
*.sln.docstates

# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs

# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
build/
bld/
[Bb]in/
[Oo]bj/

# Visual Studo 2015 cache/options directory
.vs/

# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*

#NUNIT
*.VisualState.xml
TestResult.xml

# Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
dlldata.c

*_i.c
*_p.c
*_i.h
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc

# Chutzpah Test files
_Chutzpah*

# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf
*.cachefile

# Visual Studio profiler
*.psess
*.vsp
*.vspx

# TFS 2012 Local Workspace
$tf/

# Guidance Automation Toolkit
*.gpState

# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user

# JustCode is a .NET coding addin-in
.JustCode

# TeamCity is a build add-in
_TeamCity*

# DotCover is a Code Coverage Tool
*.dotCover

# NCrunch
_NCrunch_*
.*crunch*.local.xml

# MightyMoose
*.mm.*
AutoTest.Net/

# Web workbench (sass)
.sass-cache/

# Installshield output folder
[Ee]xpress/

# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html

# Click-Once directory
publish/

# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
# TODO: Comment the next line if you want to checkin your web deploy settings
# but database connection strings (with potential passwords) will be unencrypted
*.pubxml
*.publishproj

# NuGet Packages
*.nupkg
# The packages folder can be ignored because of Package Restore
**/packages/*
# except build/, which is used as an MSBuild target.
!**/packages/build/
# Uncomment if necessary however generally it will be regenerated when needed
#!**/packages/repositories.config

# Windows Azure Build Output
csx/
*.build.csdef

# Windows Store app package directory
AppPackages/

# Others
*.[Cc]ache
ClientBin/
[Ss]tyle[Cc]op.*
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.pfx
*.publishsettings
node_modules/
bower_components/

# RIA/Silverlight projects
Generated_Code/

# Backup & report files from converting an old project file
# to a newer Visual Studio version. Backup files are not needed,
# because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm

# SQL Server files
*.mdf
*.ldf

# Business Intelligence projects
*.rdl.data
*.bim.layout
*.bim_*.settings

# Microsoft Fakes
FakesAssemblies/

# Node.js Tools for Visual Studio
.ntvs_analysis.dat

# Visual Studio 6 build log
*.plg

# Visual Studio 6 workspace options file
*.opt

#############
## WINDOWS ##
#############
# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msm
*.msp
!*.msi/

# Windows shortcuts
*.lnk

# Directories which start with '.'
**/.*/
36 changes: 0 additions & 36 deletions TestProbabilisticDataStructures/Properties/AssemblyInfo.cs

This file was deleted.

40 changes: 23 additions & 17 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
version: 1.0.{build}
configuration: Release
test: on
skip_tags: true
pull_requests:
do_not_increment_build_number: true
build:
verbosity: minimal
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'
artifacts:
- path: ProbabilisticDataStructures\bin\Release
name: ProbabilisticDataStructures-v$(appveyor_build_version)
environment:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
install:
# Download .NET Core 2.0 SDK and add to PATH
- ps: $urlCurrent = "https://download.microsoft.com/download/1/1/5/115B762D-2B41-4AF3-9A63-92D9680B9409/dotnet-sdk-2.1.4-win-x64.zip"
- ps: $env:DOTNET_INSTALL_DIR = "$pwd\.dotnetsdk"
- ps: mkdir $env:DOTNET_INSTALL_DIR -Force | Out-Null
- ps: $tempFileCurrent = [System.IO.Path]::GetTempFileName()
- ps: (New-Object System.Net.WebClient).DownloadFile($urlCurrent, $tempFileCurrent)
- ps: Add-Type -AssemblyName System.IO.Compression.FileSystem; [System.IO.Compression.ZipFile]::ExtractToDirectory($tempFileCurrent, $env:DOTNET_INSTALL_DIR)
- ps: $env:Path = "$env:DOTNET_INSTALL_DIR;$env:Path"
image: Visual Studio 2017
build: off
deploy: off
build_script:
- git config --global credential.helper store
- ps: Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:ghtoken):[email protected]`n"
- git config --global user.email "[email protected]"
- git config --global user.name "mynkow"
- build.cmd %nuget_key%


3 changes: 3 additions & 0 deletions build-configuration.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@echo off

@powershell -File .nyx\build.ps1 '--appname=ProbabilisticDataStructures' '--nugetPackageName=ProbabilisticDataStructures'
7 changes: 7 additions & 0 deletions build.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@echo off
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "New-Item -ItemType directory -Path .nyx\ -Force; (New-Object System.Net.WebClient).DownloadFile('https://raw.githubusercontent.com/Elders/Nyx/master/.nyx/nyx.cmd','.nyx\nyx.cmd')"
call .nyx\nyx.cmd

IF NOT [%1]==[] (set RELEASE_NUGETKEY="%1")

call build-configuration.cmd
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#### 1.0.1 - 05.06.2018
* Initial release
1 change: 1 addition & 0 deletions src/ProbabilisticDataStructures/gitversion.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tag-prefix: 'ProbabilisticDataStructures@'