Skip to content

Commit

Permalink
Use Cake Build
Browse files Browse the repository at this point in the history
- Removed Fake build, using Cake instead
- Removed unused install.ps1 for MtHost
- Organize all Samples into a subdirectory
- Organize common properties into common.props and signing.props
- Update readme.md with nuget package links
- Support Appveyor build on ubuntu and windows
  - Ubuntu builds will only run tests on netcore/netstandard
  - windows tests run on full framework + netstandard
  • Loading branch information
maldworth committed Jan 18, 2019
1 parent 35f7652 commit 34e3d37
Show file tree
Hide file tree
Showing 170 changed files with 3,211 additions and 2,786 deletions.
24 changes: 24 additions & 0 deletions .editorconfig
@@ -0,0 +1,24 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org

root = true


[*]
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 4

[*.{config,xml,js,json,html,css,sql,csproj,props,yml}]
indent_size = 2

[*.md]
trim_trailing_whitespace = false

[*.sh]
end_of_line = lf

[*.{cmd, bat}]
end_of_line = crlf
8 changes: 8 additions & 0 deletions .gitignore
Expand Up @@ -53,3 +53,11 @@ _book
.vscode
**/.idea/
appsettings.Development.json

# Cake
tools/**
!tools/packages.config

# Artifacts
artifacts/**
artifacts_old/**
100 changes: 97 additions & 3 deletions README.md
@@ -1,14 +1,67 @@
MassTransit
=======
===========

MassTransit is a _free, open-source_ distributed application framework for .NET. MassTransit makes it easy to create applications and services that leverage message-based, loosely-coupled asynchronous communication for higher availability, reliability, and scalability.

![Mass Transit](https://avatars2.githubusercontent.com/u/317796?s=200&v=4 "Mass Transit")

MassTransit is Apache 2.0 licensed.

![master](https://ci.appveyor.com/api/projects/status/hox8dhh5eyy7jsf4/branch/master?svg=true)
![develop](https://ci.appveyor.com/api/projects/status/hox8dhh5eyy7jsf4/branch/develop?svg=true)
Build Status
------------

Branch | Status
--- | :---:
master | [![master](https://ci.appveyor.com/api/projects/status/hox8dhh5eyy7jsf4/branch/master?svg=true)](https://ci.appveyor.com/project/phatboyg/masstransit/branch/master)
develop | [![develop](https://ci.appveyor.com/api/projects/status/hox8dhh5eyy7jsf4/branch/develop?svg=true)](https://ci.appveyor.com/project/phatboyg/masstransit/branch/develop)

MassTransit Nuget Packages
---------------------------

| Package Name | FullFramework | .NET Standard |
| ------------ | :-----------: | :-----------: |
| **Main** |
| [MassTransit][MassTransit.nuget] | 4.5.2 | 2.0 |
| **Other** |
| [MassTransit.Host][Host.nuget] | 4.5.2 | 2.0 |
| [MassTransit.Reactive][Reactive.nuget] | 4.5.2 | 2.0 |
| [MassTransit.SignalR][SignalR.nuget] | - | 2.0 |
| [MassTransit.TestFramework][TestFramework.nuget] | 4.5.2 | 2.0 |
| **Containers** |
| [MassTransit.Autofac][Autofac.nuget] | 4.5.2 | 2.0 |
| [MassTransit.Extensions.DependencyInjection][CoreDI.nuget] | 4.6.1 | 2.0 |
| [MassTransit.Lamar][Lamar.nuget] | 4.6.1 | 2.0 |
| [MassTransit.Ninject][Ninject.nuget] | 4.5.2 | 2.0 |
| [MassTransit.SimpleInjector][SimpleInjector.nuget] | 4.5.2 | 2.0 |
| [MassTransit.StructureMap][StructureMap.nuget] | 4.5.2 | 2.0 |
| [MassTransit.Unity][Unity.nuget] | 4.5.2 | 2.0 |
| [MassTransit.CastleWindsor][Windsor.nuget] | 4.5.2 | 2.0 |
| **Loggers** |
| [MassTransit.Extensions.Logging][CoreLogger.nuget] | 4.6.1 | 2.0 |
| [MassTransit.Log4Net][Log4Net.nuget] | 4.5.2 | 2.0 |
| [MassTransit.NLog][NLog.nuget] | 4.5.2 | 2.0 |
| [MassTransit.SerilogIntegration][Serilog.nuget] | 4.5.2 | 2.0 |
| **Monitoring** |
| [MassTransit.ApplicationInsights][AppInsights.nuget] | 4.5.2 | 2.0 |
| [MassTransit.AspNetCore][AspNetCore.nuget] | 4.5 | 2.0 |
| **Persistence** |
| [MassTransit.Dapper][Dapper.nuget] | 4.6.1 | - |
| [MassTransit.DocumentDb][DocumentDb.nuget] | 4.5.2 | 2.0 |
| [MassTransit.EntityFrameworkCore][EFCore.nuget] | 4.6.1 | 2.0 |
| [MassTransit.EntityFramework][EF.nuget] | 4.5.2 | - |
| [MassTransit.Marten][Marten.nuget] | 4.6.1 | 2.0 |
| [MassTransit.MongoDb][MongoDb.nuget] | 4.5.2 | 2.0 |
| [MassTransit.NHibernate][NHibernate.nuget] | 4.6.1 | 2.0 |
| [MassTransit.Redis][Redis.nuget] | 4.5.2 | 2.0 |
| **Transports** |
| [MassTransit.ActiveMQ][ActiveMQ.nuget] | 4.5 | 2.0 |
| [MassTransit.AmazonSQS][AmazonSQS.nuget] | 4.5 | 2.0 |
| [MassTransit.Azure.ServiceBus.Core][AzureSbCore.nuget] | 4.6.2 | 2.0 |
| [MassTransit.AzureServiceBus][AzureSb.nuget] | 4.5.2 | - |
| [MassTransit.Http][Http.nuget] | 4.5 | 2.0 |
| [MassTransit.RabbitMQ][RabbitMQ.nuget] | 4.5 | - |
| [MassTransit.WebJobs.EventHubs][EventHubs.nuget] | - | 2.0 |
| [MassTransit.WebJobs.ServiceBus][AzureFunc.nuget] | - | 2.0 |

## Getting started with MassTransit

Expand Down Expand Up @@ -123,3 +176,44 @@ MassTransit is built on [AppVeyor](https://ci.appveyor.com/project/phatboyg/mass

# CREDITS
Logo Design by [The Agile Badger](http://www.theagilebadger.com)

[MassTransit.nuget]: https://www.nuget.org/packages/MassTransit
[Host.nuget]: https://www.nuget.org/packages/MassTransit.Host
[Reactive.nuget]: https://www.nuget.org/packages/MassTransit.Reactive
[SignalR.nuget]: https://www.nuget.org/packages/MassTransit.SignalR
[TestFramework.nuget]: https://www.nuget.org/packages/MassTransit.TestFramework

[Autofac.nuget]: https://www.nuget.org/packages/MassTransit.Autofac
[CoreDI.nuget]: https://www.nuget.org/packages/MassTransit.Extensions.DependencyInjection
[Lamar.nuget]: https://www.nuget.org/packages/MassTransit.Lamar
[Ninject.nuget]: https://www.nuget.org/packages/MassTransit.Ninject
[SimpleInjector.nuget]: https://www.nuget.org/packages/MassTransit.SimpleInjector
[StructureMap.nuget]: https://www.nuget.org/packages/MassTransit.StructureMap
[Unity.nuget]: https://www.nuget.org/packages/MassTransit.Unity
[Windsor.nuget]: https://www.nuget.org/packages/MassTransit.CastleWindsor

[CoreLogger.nuget]: https://www.nuget.org/packages/MassTransit.Extensions.Logging
[Log4Net.nuget]: https://www.nuget.org/packages/MassTransit.Log4Net
[NLog.nuget]: https://www.nuget.org/packages/MassTransit.NLog
[Serilog.nuget]: https://www.nuget.org/packages/MassTransit.SerilogIntegration

[AppInsights.nuget]: https://www.nuget.org/packages/MassTransit.ApplicationInsights
[AspNetCore.nuget]: https://www.nuget.org/packages/MassTransit.AspNetCore

[Dapper.nuget]: https://www.nuget.org/packages/MassTransit.Dapper
[DocumentDb.nuget]: https://www.nuget.org/packages/MassTransit.DocumentDb
[EFCore.nuget]: https://www.nuget.org/packages/MassTransit.EntityFrameworkCore
[EF.nuget]: https://www.nuget.org/packages/MassTransit.EntityFramework
[Marten.nuget]: https://www.nuget.org/packages/MassTransit.Marten
[MongoDb.nuget]: https://www.nuget.org/packages/MassTransit.MongoDb
[NHibernate.nuget]: https://www.nuget.org/packages/MassTransit.NHibernate
[Redis.nuget]: https://www.nuget.org/packages/MassTransit.Redis

[ActiveMQ.nuget]: https://www.nuget.org/packages/MassTransit.ActiveMQ
[AmazonSQS.nuget]: https://www.nuget.org/packages/MassTransit.AmazonSQS
[AzureSbCore.nuget]: https://www.nuget.org/packages/MassTransit.Azure.ServiceBus.Core
[AzureSb.nuget]: https://www.nuget.org/packages/MassTransit.AzureServiceBus
[Http.nuget]: https://www.nuget.org/packages/MassTransit.Http
[RabbitMQ.nuget]: https://www.nuget.org/packages/MassTransit.RabbitMQ
[EventHubs.nuget]: https://www.nuget.org/packages/MassTransit.WebJobs.EventHubs
[AzureFunc.nuget]: https://www.nuget.org/packages/MassTransit.WebJobs.ServiceBus
92 changes: 47 additions & 45 deletions appveyor.yml
@@ -1,65 +1,66 @@
branches:
only:
- develop
- master
- develop
- master

skip_tags: true

skip_commits:
files:
- docs/*
- '**/*.html'
image: Visual Studio 2017
configuration: Release
platform: Any CPU

image:
- Visual Studio 2017
- Ubuntu1804

services:
- mongodb
- postgresql
nuget:
project_feed: true
disable_publish_on_pr: true
install:
# Follow Official Appveyor Initialization: https://github.com/appveyor-tests/CosmosDb/blob/master
- ps: |
Set-Content -Value '"C:\Program Files\Azure Cosmos DB Emulator\CosmosDB.Emulator.exe" /NoUI /NoExplorer /NoFirewall' -Path .\startCosmosDb.cmd
Start-Process -FilePath .\startCosmosDb.cmd
.\waitforport.ps1 -port 8081 -maxAttempts 4
- mongodb
- postgresql
- mssql
- rabbitmq
- redis

build: off
test: off

artifacts:
- path: artifacts/*.*nupkg
name: Packages

environment:
APPVEYOR_YML_DISABLE_PS_LINUX: true

# cmd and ps will only be ran on windows images, sh will only be ran on linux images
build_script:
- cmd: >-
@echo off
- cmd: >-
SET PGUSER=postgres
cls
SET PGPASSWORD=Password12!
SET PGUSER=postgres
PATH=C:\Program Files\PostgreSQL\9.6\bin\;%PATH%
SET PGPASSWORD=Password12!
createdb MartenTest
- ps: .\Build.ps1
- sh: >-
wget https://dl.bintray.com/rabbitmq/community-plugins/3.6.x/rabbitmq_delayed_message_exchange/rabbitmq_delayed_message_exchange-20171215-3.6.x.zip
PATH=C:\Program Files\PostgreSQL\9.6\bin\;%PATH%
sudo unzip ./rabbitmq_delayed_message_exchange-20171215-3.6.x.zip -d /usr/lib/rabbitmq/plugins
createdb MartenTest
sudo rabbitmqctl add_vhost test
If Not Exist src\.nuget\nuget.exe msbuild src\.nuget\NuGet.targets -Target:RestorePackages
sudo rabbitmqctl set_permissions -p test guest ".*" ".*" ".*"
If Not Exist src\packages\gitlink\lib\net45\GitLink.exe src\.nuget\nuget.exe Install gitlink -Source "https://www.nuget.org/api/v2/" -OutputDirectory "src\packages" -ExcludeVersion
sudo rabbitmq-plugins enable rabbitmq_delayed_message_exchange
- sh: ./build.sh

If Not Exist src\packages\FAKE\tools\fake.exe src\.nuget\nuget.exe Install FAKE -OutputDirectory "src\packages" -ExcludeVersion
install:
# Follow Official Appveyor Initialization: https://github.com/appveyor-tests/CosmosDb/blob/master
- ps: |
Set-Content -Value '"C:\Program Files\Azure Cosmos DB Emulator\CosmosDB.Emulator.exe" /NoUI /NoExplorer /NoFirewall' -Path .\startCosmosDb.cmd
Start-Process -FilePath .\startCosmosDb.cmd
.\waitforport.ps1 -port 8081 -maxAttempts 4
src\packages\FAKE\tools\fake.exe build.fsx %*
test:
assemblies:
- src/MassTransit.Tests/bin/Release/net452/MassTransit.Tests.dll
- src/Containers/MassTransit.Containers.Tests/bin/Release/net452/MassTransit.Containers.Tests.dll
- src/MassTransit.AutomatonymousIntegration.Tests/bin/Release/net461/MassTransit.AutomatonymousIntegration.Tests.dll
- src/Persistence/MassTransit.MongoDbIntegration.Tests/bin/Release/net452/MassTransit.MongoDbIntegration.Tests.dll
- src/Persistence/MassTransit.MartenIntegration.Tests/bin/Release/net452/MassTransit.MartenIntegration.Tests.dll
- src/Persistence/MassTransit.NHibernateIntegration.Tests/bin/Release/net461/MassTransit.NHibernateIntegration.Tests.dll
- src/Persistence/MassTransit.DocumentDbIntegration.Tests/bin/Release/net452/MassTransit.DocumentDbIntegration.Tests.dll
- src/MassTransit.HttpTransport.Tests/bin/Release/net452/MassTransit.HttpTransport.Tests.dll
- src/MassTransit.SignalR.Tests/bin/Release/netcoreapp2.2/MassTransit.SignalR.Tests.dll
categories:
except:
- Flakey
artifacts:
- path: build_artifacts/*.nupkg
name: Packages
deploy:
- provider: NuGet
name: Prerelease
Expand All @@ -73,9 +74,10 @@ deploy:
secure: 0B2TmwiOnNW+CavGbvgr6S8WcuB2A/5enkf/ZrlRW+8Q8AwW5P9T7+B3QDAtYiEi
on:
branch: master

notifications:
- provider: Webhook
url: https://webhooks.gitter.im/e/27919bcbf1f770b0befd
on_build_success: true
on_build_failure: true
on_build_status_changed: true
on_build_status_changed: true
6 changes: 0 additions & 6 deletions build.bat

This file was deleted.

0 comments on commit 34e3d37

Please sign in to comment.