Skip to content

Commit

Permalink
build automation refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
osoykan committed Oct 26, 2017
1 parent ba56717 commit 23c0dbd
Show file tree
Hide file tree
Showing 64 changed files with 360 additions and 14,467 deletions.
189 changes: 72 additions & 117 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,48 +4,22 @@
# 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/
bld/
[Bb]in/
[Oo]bj/

# Visual Studio 2015 cache/options directory
.vs/
# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/
[Bb]in/

# 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

# DNX
project.lock.json
artifacts/

*_i.c
*_p.c
*_i.h
*.ilk
*.meta
*.obj
Expand All @@ -65,17 +39,13 @@ artifacts/
*.vssscc
.builds
*.pidb
*.svclog
*.log
*.scc

# Chutzpah Test files
_Chutzpah*

# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opendb
*.opensdf
*.sdf
*.cachefile
Expand All @@ -84,21 +54,13 @@ ipch/
*.psess
*.vsp
*.vspx
*.sap

# 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 add-in
.JustCode

# TeamCity is a build add-in
_TeamCity*
Expand All @@ -107,16 +69,8 @@ _TeamCity*
*.dotCover

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

# MightyMoose
*.mm.*
AutoTest.Net/

# Web workbench (sass)
.sass-cache/
.*crunch*.local.xml

# Installshield output folder
[Ee]xpress/
Expand All @@ -135,102 +89,103 @@ DocProject/Help/html
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
*.Publish.xml

# 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
# NuGet v3's project.json files produces more ignoreable files
*.nuget.props
*.nuget.targets

# Microsoft Azure Build Output
csx/
*.build.csdef
# NuGet Packages Directory
## TODO: If you have NuGet Package Restore enabled, uncomment the next line
packages/

# Microsoft Azure Emulator
ecf/
rcf/

# Microsoft Azure ApplicationInsights config file
ApplicationInsights.config
# Windows Azure Build Output
csx
*.build.csdef

# Windows Store app package directory
AppPackages/
BundleArtifacts/

# Visual Studio cache files
# files ending in .cache can be ignored
*.[Cc]ache
# but keep track of directories ending in .cache
!*.[Cc]ache/

# Others
sql/
*.Cache
ClientBin/
[Ss]tyle[Cc]op.*
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.[Pp]ublish.xml
*.pfx
*.publishsettings
node_modules/
orleans.codegen.cs

# 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 ;-)
# 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
App_Data/*.mdf
App_Data/*.ldf

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

# Microsoft Fakes
FakesAssemblies/
#LightSwitch generated files
GeneratedArtifacts/
_Pvt_Extensions/
ModelManifest.xml

# GhostDoc plugin setting file
*.GhostDoc.xml
# =========================
# Windows detritus
# =========================

# Node.js Tools for Visual Studio
.ntvs_analysis.dat
# Some stackdump file that sometimes appears
us.stackdump

# Visual Studio 6 build log
*.plg
# Windows image file caches
Thumbs.db
ehthumbs.db

# Visual Studio 6 workspace options file
*.opt
# Folder config file
Desktop.ini

# Visual Studio LightSwitch build output
**/*.HTMLClient/GeneratedArtifacts
**/*.DesktopClient/GeneratedArtifacts
**/*.DesktopClient/ModelManifest.xml
**/*.Server/GeneratedArtifacts
**/*.Server/ModelManifest.xml
_Pvt_Extensions
# Recycle Bin used on file shares
$RECYCLE.BIN/

# Paket dependency manager
.paket/paket.exe
# Mac desktop service store files
.DS_Store
Package/Lib
*.nupkg

# FAKE - F# Make
.fake/
# Temporary files created when merging
*.orig
*.LOCAL.*.xml
*.REMOTE.*.xml
*.BASE.*.xml
*.BACKUP.*.xml

# Symbolic links and other files created by ConfigureSolutions
Output/*

#Visual Studio 2015 files
**/*.sln.ide/**
_NCrunch_FluentAssemblyScanner/
Artifacts/**
*.v3.ncrunchsolution
*.ncrunchsolution
*.ncrunchproject

# User-specific stuff:
.idea
.vs

# Cake related
Build/**
!Build/packages.config
Tools/**
/.vs
*.dg
*.config
*.ncrunchproject

/.dotnet
/.vscode
9 changes: 7 additions & 2 deletions FluentAssemblyScanner.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26228.4
VisualStudioVersion = 15.0.27004.2005
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{2BF35C86-651F-484A-89CD-DCFFF32646E6}"
EndProject
Expand All @@ -11,6 +11,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
ProjectSection(SolutionItems) = preProject
.gitignore = .gitignore
appveyor.yml = appveyor.yml
build.cake = build.cake
build.ps1 = build.ps1
LICENCE = LICENCE
nuget.config = nuget.config
README.md = README.md
Expand All @@ -25,7 +27,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FluentAssemblyScanner.Tests
{30446811-1745-40E3-B141-FD15278A5E24} = {30446811-1745-40E3-B141-FD15278A5E24}
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FluentAssemblyScanner.Tests.AdditionalAssembly", "test\FluentAssemblyScanner.Tests.AdditionalAssembly\FluentAssemblyScanner.Tests.AdditionalAssembly.csproj", "{2865A2C3-F4F8-453F-B39B-91487F2DF836}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FluentAssemblyScanner.Test.AdditionalAssembly", "test\FluentAssemblyScanner.Test.AdditionalAssembly\FluentAssemblyScanner.Test.AdditionalAssembly.csproj", "{2865A2C3-F4F8-453F-B39B-91487F2DF836}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FluentAssemblyScanner.Test.SecondAdditionalAssembly", "test\FluentAssemblyScanner.Test.SecondAdditionalAssembly\FluentAssemblyScanner.Test.SecondAdditionalAssembly.csproj", "{30446811-1745-40E3-B141-FD15278A5E24}"
EndProject
Expand Down Expand Up @@ -62,4 +64,7 @@ Global
{2865A2C3-F4F8-453F-B39B-91487F2DF836} = {20AB6590-16BA-485C-9933-1087FE8ABF40}
{30446811-1745-40E3-B141-FD15278A5E24} = {20AB6590-16BA-485C-9933-1087FE8ABF40}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {3302D602-74A6-4B6C-BC82-1C1AA80FEA91}
EndGlobalSection
EndGlobal
56 changes: 5 additions & 51 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,56 +1,10 @@
configuration: Release
version: 1.0.{build}
configuration: Release
image: Visual Studio 2017

pull_requests:
pull_requests:
do_not_increment_build_number: true

assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'

environment:
nuget_user: [email protected]
nuget_password:
secure: w73Xs1Is7iK/DtAOf0XTHg==
COVERALLS_REPO_TOKEN:
secure: dVMQAKOiU3HuWBAVVTrML0OS5fiGriqI9

before_build:
- cmd: set PATH=C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin;C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin;%PATH%
- cmd: nuget install nuget.commandline -source https://dotnet.myget.org/F/nuget-build -prerelease -excludeversion
- cmd: set PATH=%appveyor_build_folder%\NuGet.CommandLine\tools;%PATH%
- cmd: nuget restore FluentAssemblyScanner.sln

build:
project: FluentAssemblyScanner.sln
publish_nuget: true
publish_nuget_symbols: true
include_nuget_references: true
verbosity: minimal

test:
assemblies: test\FluentAssemblyScanner.Tests\bin\Release\net461\FluentAssemblyScanner.Tests.dll

after_test:
- tools\coverage\opencover\OpenCover.Console.exe -register:user -target:"tools\xunitrunner2.2.0\xunit.console.x86.exe" -targetdir:"test\FluentAssemblyScanner.Tests\bin\Release\net461" -targetargs:"FluentAssemblyScanner.Tests.dll" -filter:"+[FluentAssemblyScanner*]* -[FluentAssemblyScanner.T*]*" -excludebyattribute:*.ExcludeFromCodeCoverage* -output:xunit_opencovertests.xml -coverbytest:*.Tests.dll
- tools\coverage\coveralls.net\csmacnz.Coveralls.exe --opencover -i xunit_opencovertests.xml --repoToken %COVERALLS_REPO_TOKEN% --commitBranch %APPVEYOR_REPO_BRANCH%

nuget:
disable_publish_on_pr: true
account_feed: true
project_feed: true

artifacts:
- path: '**\*.nupkg'
build_script:
- ps: .\build.ps1 -experimental

deploy:
- provider: NuGet
on:
branch: master
api_key:
secure: liSTqN52OJQy9fZJk6gubSgYBAy4EXcEPCDSCLJ/3T9cZufzpTwvBlGPLX+iP2n9
artifact: /.*\.nupkg/
test: off
Loading

0 comments on commit 23c0dbd

Please sign in to comment.