Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
128 commits
Select commit Hold shift + click to select a range
5f2dd97
Removed Reentrancy behavior
rogeralsing Apr 28, 2015
0ecfa5b
Documentation fixes for Dependency Injection
sean-gilliam Apr 28, 2015
df9f426
Update .editorconfig
kekekeks Apr 28, 2015
56b567c
Merge pull request #922 from sean-gilliam/doc-fixes
Aaronontheweb Apr 28, 2015
aa54a2a
Merge pull request #917 from rogeralsing/remove-reentrancy
Aaronontheweb Apr 28, 2015
bb3a021
Merge pull request #923 from kekekeks/editorconfig
Aaronontheweb Apr 28, 2015
80e5c94
added some more descriptive comments to the remoting components
Aaronontheweb Apr 29, 2015
c62981b
Update README.md
monoman Apr 29, 2015
645f61f
Merge pull request #924 from Aaronontheweb/remoting-docs
Aaronontheweb Apr 29, 2015
bd1695c
Merge pull request #927 from monoman/patch-1
Aaronontheweb Apr 29, 2015
cbc15d6
Updated xmldocs in Akka.Serialization
sean-gilliam Apr 29, 2015
4ad2cfc
Merge pull request #929 from sean-gilliam/doc-fixes
Aaronontheweb Apr 29, 2015
9639f5d
more comments and docs
Aaronontheweb Apr 30, 2015
10ce3f0
Merge pull request #930 from Aaronontheweb/remoting-docs
Aaronontheweb Apr 30, 2015
147a9a0
added clearer logging and validation to Remote / Cluster
Aaronontheweb Apr 30, 2015
c3c3cd4
Merge pull request #931 from Aaronontheweb/cluster-logging
rogeralsing Apr 30, 2015
04de784
All Pool routers from configuration now use DefaultSupervisoryStrategy
Aaronontheweb Apr 30, 2015
7fc29e4
Merge pull request #932 from Aaronontheweb/clusterrouter-supervisor-fix
annymsMthd Apr 30, 2015
2c95308
changed the HeliosTcpHandler so it reports disassociations for reason…
Aaronontheweb Apr 30, 2015
1b766c4
Merge pull request #933 from Aaronontheweb/heliostcphandler-fix
annymsMthd May 1, 2015
ce2b5fd
Update .editorconfig
kekekeks Apr 28, 2015
72d42d0
specify nuget config file to avoid accessing private nuget repo
May 1, 2015
1c949d5
Pre-release version notes so new NuGet packages will show up correctl…
Aaronontheweb May 1, 2015
953ec28
Merge pull request #939 from Aaronontheweb/prerelease-version-notes
annymsMthd May 1, 2015
09fe618
Merge pull request #937 from andrewchaa/nuget_config
annymsMthd May 4, 2015
3ab8ff9
dynamic resolution of snapshot stores and journals
Horusiath May 5, 2015
22e5d3a
Cleaning up the Event namespace
stefansedich May 5, 2015
8c399da
Merge remote-tracking branch 'upstream/dev' into dev
stefansedich May 5, 2015
a786340
Merge pull request #947 from stefansedich/dev
Aaronontheweb May 5, 2015
32d2e27
Implement RemotingTerminator and add RemoteNodeShutdownAndComeBackSpec
smalldave May 1, 2015
f66c262
bump commit
Aaronontheweb May 6, 2015
2834d91
Upgraded to XUnit 2.0 RTM
annymsMthd Apr 17, 2015
9fab967
Merge pull request #945 from Horusiath/akka-persistence-dynamic-resolve
rogeralsing May 6, 2015
7076c7e
fixed xunit references for MultiNodeTestRunner.Shared tests
annymsMthd May 6, 2015
39bbb82
Fix for DIActorProducer #941
Danthar May 6, 2015
39de439
"virtual" log level for OFF #940
kekekeks May 6, 2015
54d8809
Merge pull request #950 from Danthar/issue-941-branch
Aaronontheweb May 6, 2015
42e378c
Merge pull request #951 from kekekeks/issue-940
rogeralsing May 7, 2015
9247049
Merge pull request #949 from Aaronontheweb/smalldave-RemotingTerminator
rogeralsing May 7, 2015
67afa23
Revert "Implement RemotingTerminator and add RemoteNodeShutdownAndCom…
Aaronontheweb May 7, 2015
1c96de7
Merge pull request #958 from akkadotnet/revert-949-smalldave-Remoting…
Aaronontheweb May 7, 2015
ff6f12b
Merge pull request #888 from syncromatics/test-runner-improvements
Aaronontheweb May 7, 2015
d40e1c0
Modified RoutedActorCell to match akka canonical
annymsMthd May 7, 2015
c28f79e
Merge pull request #953 from syncromatics/849-fix-cluster-routee-evic…
Aaronontheweb May 8, 2015
3cb0719
Proper DIActorProducer fix
Danthar May 8, 2015
80f2c53
Merge pull request #961 from Danthar/fixes-branch
Aaronontheweb May 8, 2015
948f016
created Akka.Persistence.Sql.Common project
Horusiath May 5, 2015
5ca5d21
Merge pull request #963 from Horusiath/akka-persistence-common-sql
rogeralsing May 9, 2015
8ba957a
Added Extensions methods to ActorSystem and ActorContext to make DI more
tola-isoware May 11, 2015
25f595d
Fixing up cluster leader election to match akka canonical.
annymsMthd May 9, 2015
dfed6df
Merge pull request #962 from syncromatics/918-fix-cluster-rejoin-beha…
Aaronontheweb May 11, 2015
c0818f6
fixed assembly info for csharp.. it wasn't getting generated anymore
annymsMthd May 12, 2015
c82857f
Changes to the BasicCastleWindsorUse project to use the new extension.
tola-isoware May 12, 2015
33de378
Merge pull request #969 from syncromatics/fix-fake-script
Aaronontheweb May 12, 2015
275d2f5
PostgreSQL persistence plugin for both event journal and snapshot sto…
davidflerlage May 12, 2015
4e17f0a
Merge pull request #971 from davidflerlage/akka-persistence-postgresql
Horusiath May 13, 2015
68a4833
fix to beta tagging
annymsMthd May 14, 2015
667e135
Merge pull request #977 from syncromatics/fix-to-nightly-build
Aaronontheweb May 14, 2015
7c5a7a3
Add PipeTo for non-generic Tasks for exception handling
May 14, 2015
e4c38ad
Fixed missing/boilerplate xmldoc in Configuration
sean-gilliam May 14, 2015
e3aab4c
Merge pull request #979 from sean-gilliam/configuration-xmldoc-fixes
rogeralsing May 14, 2015
5190790
Updated default throughput values to conform with JVM and promote fai…
rogeralsing May 15, 2015
cbe4975
Merge pull request #978 from adamhathcock/pipeto_exception
rogeralsing May 15, 2015
30513ee
Merge pull request #980 from rogeralsing/default-throughput
Aaronontheweb May 15, 2015
330faab
Dedicated thread Scheduler
rogeralsing May 15, 2015
aec0660
updated Property name to not include Utc
rogeralsing May 15, 2015
2244ac5
Merge pull request #982 from rogeralsing/custom-scheduler
Aaronontheweb May 15, 2015
b4818e6
Added dispatcher fixes for remote and cluster
annymsMthd May 14, 2015
a745d41
Merge pull request #983 from syncromatics/fixes-to-dispatcher-assignment
Aaronontheweb May 16, 2015
224a578
renamed GuaranteedDelivery classes to AtLeastOnceDelivery
Horusiath May 17, 2015
e32aa45
Merge pull request #984 from Horusiath/akka-persistence-renaming
rogeralsing May 17, 2015
eee0cd5
Add failing test for supervisor strategy constructor bug
May 17, 2015
0931aec
Fix Nullable Supervisor Strategy constructors
May 17, 2015
71ed30a
Merge pull request #986 from neoeinstein/supervisor-strategy-bad-time…
Aaronontheweb May 18, 2015
b0ff94e
Missing xmldoc comments and typo fix
sean-gilliam May 18, 2015
1d23f93
Merge pull request #988 from sean-gilliam/logger-fixes
Aaronontheweb May 18, 2015
3b4a05b
Added generic extensions to EventStream subscribe/unsubscribe.
nvivo May 19, 2015
8739fd7
DIActorSystemAdapter.cs
tola-isoware May 19, 2015
a86e027
Merge pull request #990 from nvivo/eventstream-extensions
Aaronontheweb May 19, 2015
adc1deb
Fix the url for Building Akka docs
lnmunhoz May 19, 2015
b2d3e8c
Merge pull request #991 from lnmunhoz/patch-1
Aaronontheweb May 19, 2015
85d3d0c
Merge pull request #966 from thomaslazar/di_extension
Aaronontheweb May 19, 2015
e5b6f82
Convert null to NoSender.
rogeralsing May 20, 2015
452dde1
Merge pull request #993 from rogeralsing/null-means-no
Aaronontheweb May 20, 2015
1b076d3
Make actor system respect the configured schedule type
stefansedich May 20, 2015
fc7c859
Merge remote-tracking branch 'upstream/dev' into dev
stefansedich May 20, 2015
43c39d1
Move over to using the new DedicatedThreadScheduler as the default im…
stefansedich May 20, 2015
414fd3c
Cassandra persistence plugin (issue #987)
LukeTillman May 20, 2015
2d0a7d4
Merge pull request #995 from LukeTillman/akka-persistence-cassandra-pr
rogeralsing May 21, 2015
457c2d4
Fixes #996
rogeralsing May 21, 2015
5175e9c
Merge pull request #1000 from rogeralsing/poolrouter-supervisors
Aaronontheweb May 21, 2015
617a4ff
Updated the TaskBasedScheduler tests for DedicatedThreadScheduler ins…
rogeralsing May 21, 2015
14c26f1
Merge remote-tracking branch 'upstream/dev' into dev
stefansedich May 21, 2015
9f638b0
Merge pull request #1002 from rogeralsing/dedicatedthreadscheduler-tests
stefansedich May 21, 2015
6e84075
Merge remote-tracking branch 'upstream/dev' into dev
stefansedich May 21, 2015
600a82c
Fixing up the tests for the actor system scheduler specs (bitten by R…
stefansedich May 21, 2015
27b727f
Remove empty file
rogeralsing May 22, 2015
1f9a0ba
Merge pull request #1005 from rogeralsing/tailchopping-remove-file
Aaronontheweb May 23, 2015
ce04a8a
Added ctor overload
May 23, 2015
11fa059
Merge pull request #1008 from dVakulen/871-ctor-overload
rogeralsing May 23, 2015
a3a9fec
Replaced DateTime.Now with DateTime.UtcNow/MonotonicClock
kekekeks May 23, 2015
e219f1a
Merge remote-tracking branch 'upstream/dev' into dev
stefansedich May 24, 2015
f47a609
Fix order that the scheduler is initialized
stefansedich May 24, 2015
b1a65b5
Merge branch 'dev' of https://github.com/stefansedich/akka.net into dev
stefansedich May 24, 2015
8e741b6
Merge pull request #994 from stefansedich/dev
rogeralsing May 26, 2015
7efa23e
Merge pull request #1009 from kekekeks/issue-846
rogeralsing May 26, 2015
cdebe96
Fixed missing/boilerplate xmldoc comments
sean-gilliam May 26, 2015
67ce381
Merge pull request #1012 from sean-gilliam/hocon-xmldoc-fixes
rogeralsing May 26, 2015
9f058cb
Fixed a few class cross references
sean-gilliam May 27, 2015
904e19e
Merge pull request #1014 from sean-gilliam/fix-xmldoc-references
Aaronontheweb May 28, 2015
929984c
ActorCell.DeathWatch InvalidOperationException during AddressTerminat…
rogeralsing May 30, 2015
928ff2b
Merge pull request #1018 from rogeralsing/dev
Aaronontheweb May 30, 2015
1550b5f
closes akkadotnet/akka.net#1020 structuremap dependency injection
jeffdoolittle Jun 1, 2015
5bd63d4
Merge pull request #1021 from jeffdoolittle/issue-1020-structuremap-di
Aaronontheweb Jun 2, 2015
6d59f14
close #1025
Aaronontheweb Jun 2, 2015
b1f85d3
revert-interface-change
Aaronontheweb Jun 2, 2015
e1d37a6
close #1004 - Akka.Persistence now added as dependency to all Akka.Pe…
Aaronontheweb Jun 2, 2015
0a9dd66
Merge pull request #1029 from Aaronontheweb/revert-loggingadapter-change
stefansedich Jun 2, 2015
adc5db0
added release notes for v1.0.2 release
Aaronontheweb Jun 2, 2015
2c4a433
added link to Akka.Persistence.PostgreSql and Akka.Persistence.Cassan…
Aaronontheweb Jun 2, 2015
4a17849
added fix pre-release nuget package #s for Akka.Cluster, Akka.Persist…
Aaronontheweb Jun 3, 2015
b80793b
Merge pull request #1032 from Aaronontheweb/fix-prerelease-nuget-pack…
annymsMthd Jun 3, 2015
c2e32c8
Merge pull request #1028 from Aaronontheweb/1025-fix
annymsMthd Jun 3, 2015
cfaae97
fixed issue with build.fsx
Aaronontheweb Jun 3, 2015
77567da
fixed conflict within build.fsx for #1004
Aaronontheweb Jun 3, 2015
af1f29f
Merge pull request #1031 from Aaronontheweb/v1.0.2-release-notes
stefansedich Jun 3, 2015
6f7b896
Merge pull request #1030 from Aaronontheweb/1004-fix
annymsMthd Jun 3, 2015
cf6863f
Merge branch 'dev'
Aaronontheweb Jun 3, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ root = true
end_of_line = CRLF

[*.cs]
indent_style = tab
indent_style = space
indent_size = 4
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -210,3 +210,4 @@ FakesAssemblies/
/src/.Akka.boltdata/Settings.json
/src/.Akka.boltdata/TestResults.json
resetdev.bat
/src/packages/repositories.config
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

### Documentation and resources

#### [Akka.NET Community SIte](http://getakka.net)
#### [Akka.NET Community Site](http://getakka.net)


### Install Akka.NET via NuGet
Expand All @@ -38,6 +38,6 @@ PM> Install-Package Akka.FSharp
### Contribute
If you are interested in helping porting Akka to .NET please take a look at [Contributing to Akka.NET](http://akkadotnet.github.io/wiki/Contributing to Akka.NET).

Also, please see [Building Akka .NET](https://github.com/akkadotnet/akka.net/wiki/Building-and-Distributing-Pigeon).
Also, please see [Building Akka.NET](http://getakka.net/docs/Building%20and%20Distributing%20Akka).

<a href="http://www.jetbrains.com/resharper"><img src="http://i61.tinypic.com/15qvwj7.jpg" alt="ReSharper" title="ReSharper"></a>
60 changes: 60 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,63 @@
#### 1.0.2 June 2 2015
**Bugfix release for Akka.NET v1.0.1.**

Fixes & Changes - Akka.NET Core
* [Routers seem ignore supervision strategy](https://github.com/akkadotnet/akka.net/issues/996)
* [Replaced DateTime.Now with DateTime.UtcNow/MonotonicClock](https://github.com/akkadotnet/akka.net/pull/1009)
* [DedicatedThreadScheduler](https://github.com/akkadotnet/akka.net/pull/1002)
* [Add ability to specify scheduler implementation in configuration](https://github.com/akkadotnet/akka.net/pull/994)
* [Added generic extensions to EventStream subscribe/unsubscribe.](https://github.com/akkadotnet/akka.net/pull/990)
* [Convert null to NoSender.](https://github.com/akkadotnet/akka.net/pull/993)
* [Supervisor strategy bad timeouts](https://github.com/akkadotnet/akka.net/pull/986)
* [Updated Pigeon.conf throughput values](https://github.com/akkadotnet/akka.net/pull/980)
* [Add PipeTo for non-generic Tasks for exception handling](https://github.com/akkadotnet/akka.net/pull/978)

Fixes & Changes - Akka.NET Dependency Injection
* [Added Extensions methods to ActorSystem and ActorContext to make DI more accessible](https://github.com/akkadotnet/akka.net/pull/966)
* [DIActorProducer fixes](https://github.com/akkadotnet/akka.net/pull/961)
* [closes akkadotnet/akka.net#1020 structuremap dependency injection](https://github.com/akkadotnet/akka.net/pull/1021)

Fixes & Changes - Akka.Remote and Akka.Cluster
* [Fixing up cluster rejoin behavior](https://github.com/akkadotnet/akka.net/pull/962)
* [Added dispatcher fixes for remote and cluster ](https://github.com/akkadotnet/akka.net/pull/983)
* [Fixes to ClusterRouterGroup](https://github.com/akkadotnet/akka.net/pull/953)
* [Two actors are created by remote deploy using Props.WithDeploy](https://github.com/akkadotnet/akka.net/issues/1025)

Fixes & Changes - Akka.Persistence
* [Renamed GuaranteedDelivery classes to AtLeastOnceDelivery](https://github.com/akkadotnet/akka.net/pull/984)
* [Changes in Akka.Persistence SQL backend](https://github.com/akkadotnet/akka.net/pull/963)
* [PostgreSQL persistence plugin for both event journal and snapshot store](https://github.com/akkadotnet/akka.net/pull/971)
* [Cassandra persistence plugin](https://github.com/akkadotnet/akka.net/pull/995)

**New Features:**

**Akka.TestKit.XUnit2**
Akka.NET now has support for [XUnit 2.0](http://xunit.github.io/)! You can install Akka.TestKit.XUnit2 via the NuGet commandline:

```
PM> Install-Package Akka.TestKit.XUnit2
```

**Akka.Persistence.PostgreSql** and **Akka.Persistence.Cassandra**
Akka.Persistence now has two additional concrete implementations for PostgreSQL and Cassandra! You can install either of the packages using the following commandline:

[Akka.Persistence.PostgreSql Configuration Docs](https://github.com/akkadotnet/akka.net/tree/dev/src/contrib/persistence/Akka.Persistence.PostgreSql)
```
PM> Install-Package Akka.Persistence.PostgreSql
```

[Akka.Persistence.Cassandra Configuration Docs](https://github.com/akkadotnet/akka.net/tree/dev/src/contrib/persistence/Akka.Persistence.Cassandra)
```
PM> Install-Package Akka.Persistence.Cassandra
```

**Akka.DI.StructureMap**
Akka.NET's dependency injection system now supports [StructureMap](http://structuremap.github.io/)! You can install Akka.DI.StructureMap via the NuGet commandline:

```
PM> Install-Package Akka.DI.StructureMap
```

#### 1.0.1 Apr 28 2015

**Bugfix release for Akka.NET v1.0.**
Expand Down
12 changes: 5 additions & 7 deletions build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,17 @@ pushd %~dp0

src\.nuget\NuGet.exe update -self

src\.nuget\NuGet.exe install FAKE -OutputDirectory src\packages -ExcludeVersion -Version 3.4.1
src\.nuget\NuGet.exe install FAKE -ConfigFile src\.nuget\Nuget.Config -OutputDirectory src\packages -ExcludeVersion -Version 3.28.8

src\.nuget\NuGet.exe install xunit.runners -OutputDirectory src\packages\FAKE -ExcludeVersion -Version 1.9.2
src\.nuget\NuGet.exe install nunit.runners -OutputDirectory src\packages\FAKE -ExcludeVersion -Version 2.6.4
src\.nuget\NuGet.exe install xunit.runner.console -ConfigFile src\.nuget\Nuget.Config -OutputDirectory src\packages\FAKE -ExcludeVersion -Version 2.0.0
src\.nuget\NuGet.exe install nunit.runners -ConfigFile src\.nuget\Nuget.Config -OutputDirectory src\packages\FAKE -ExcludeVersion -Version 2.6.4

if not exist src\packages\SourceLink.Fake\tools\SourceLink.fsx (
src\.nuget\nuget.exe install SourceLink.Fake -OutputDirectory src\packages -ExcludeVersion
src\.nuget\nuget.exe install SourceLink.Fake -ConfigFile src\.nuget\Nuget.Config -OutputDirectory src\packages -ExcludeVersion
)
rem cls

set encoding=utf-8
src\packages\FAKE\tools\FAKE.exe build.fsx %*

popd


popd
85 changes: 59 additions & 26 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

open System
open System.IO
open System.Text
open Fake
open Fake.FileUtils
open Fake.MSTest
Expand Down Expand Up @@ -35,14 +36,15 @@ let parsedRelease =
File.ReadLines "RELEASE_NOTES.md"
|> ReleaseNotesHelper.parseReleaseNotes

//Fake.ReleaseNotesHelper.Parse assumes letters+int in PreRelease.TryParse.
//This means we cannot append the full date yyyMMddHHmmss to prerelease.
//See https://github.com/fsharp/FAKE/issues/522
//TODO: When this has been fixed, switch to DateTime.UtcNow.ToString("yyyyMMddHHmmss")
let preReleaseVersion = parsedRelease.AssemblyVersion + "-" + (getBuildParamOrDefault "nugetprerelease" "pre") + DateTime.UtcNow.ToString("yyMMddHHmm")
let envBuildNumber = System.Environment.GetEnvironmentVariable("BUILD_NUMBER")
let buildNumber = if String.IsNullOrWhiteSpace(envBuildNumber) then "0" else envBuildNumber

let version = parsedRelease.AssemblyVersion + "." + buildNumber
let preReleaseVersion = version + "-beta"

let isUnstableDocs = hasBuildParam "unstable"
let isPreRelease = hasBuildParam "nugetprerelease"
let release = if isPreRelease then ReleaseNotesHelper.ReleaseNotes.New(parsedRelease.AssemblyVersion, preReleaseVersion, parsedRelease.Notes) else parsedRelease
let release = if isPreRelease then ReleaseNotesHelper.ReleaseNotes.New(version, version + "-beta", parsedRelease.Notes) else parsedRelease

printfn "Assembly version: %s\nNuget version; %s\n" release.AssemblyVersion release.NugetVersion
//--------------------------------------------------------------------------------
Expand All @@ -57,6 +59,14 @@ let libDir = workingDir @@ @"lib\net45\"
let nugetExe = FullName @"src\.nuget\NuGet.exe"
let docDir = "bin" @@ "doc"

open Fake.RestorePackageHelper
Target "RestorePackages" (fun _ ->
"./src/Akka.sln"
|> RestoreMSSolutionPackages (fun p ->
{ p with
OutputPath = "./src/packages"
Retries = 4 })
)

//--------------------------------------------------------------------------------
// Clean build results
Expand All @@ -67,17 +77,22 @@ Target "Clean" <| fun _ ->
//--------------------------------------------------------------------------------
// Generate AssemblyInfo files with the version for release notes


open AssemblyInfoFile

Target "AssemblyInfo" <| fun _ ->
CreateCSharpAssemblyInfoWithConfig "src/SharedAssemblyInfo.cs" [
Attribute.Company company
Attribute.Copyright copyright
Attribute.Trademark ""
Attribute.Version version
Attribute.FileVersion version ] <| AssemblyInfoFileConfig(false)

for file in !! "src/**/AssemblyInfo.fs" do
let title =
file
|> Path.GetDirectoryName
|> Path.GetDirectoryName
|> Path.GetFileName

let version = release.AssemblyVersion + ".0"

CreateFSharpAssemblyInfo file [
Attribute.Title title
Expand All @@ -90,12 +105,6 @@ Target "AssemblyInfo" <| fun _ ->
Attribute.Version version
Attribute.FileVersion version ]

CreateCSharpAssemblyInfoWithConfig "src/SharedAssemblyInfo.cs" [
Attribute.Company company
Attribute.Copyright copyright
Attribute.Trademark ""
Attribute.Version version
Attribute.FileVersion version ] |> ignore

//--------------------------------------------------------------------------------
// Build the solution
Expand Down Expand Up @@ -182,6 +191,7 @@ Target "CopyOutput" <| fun _ ->
"contrib/dependencyinjection/Akka.DI.Ninject"
"contrib/testkits/Akka.TestKit.Xunit"
"contrib/testkits/Akka.TestKit.NUnit"
"contrib/testkits/Akka.TestKit.Xunit2"
]
|> List.iter copyOutput

Expand All @@ -201,14 +211,16 @@ Target "CleanTests" <| fun _ ->
//--------------------------------------------------------------------------------
// Run tests

open XUnitHelper
open XUnit2Helper
Target "RunTests" <| fun _ ->
let msTestAssemblies = !! "src/**/bin/Release/Akka.TestKit.VsTest.Tests.dll"
let nunitTestAssemblies = !! "src/**/bin/Release/Akka.TestKit.NUnit.Tests.dll"
let xunitTestAssemblies = !! "src/**/bin/Release/*.Tests.dll" --
"src/**/bin/Release/Akka.TestKit.VsTest.Tests.dll" --
"src/**/bin/Release/Akka.TestKit.NUnit.Tests.dll" --
"src/**/bin/Release/Akka.Persistence.SqlServer.Tests.dll"
"src/**/bin/Release/Akka.Persistence.SqlServer.Tests.dll" --
"src/**/bin/Release/Akka.Persistence.PostgreSql.Tests.dll" --
"src/**/bin/Release/Akka.Persistence.Cassandra.Tests.dll"

mkdir testOutput

Expand All @@ -219,9 +231,9 @@ Target "RunTests" <| fun _ ->
DisableShadowCopy = true;
OutputFile = testOutput + @"\NUnitTestResults.xml"})

let xunitToolPath = findToolInSubPath "xunit.console.clr4.exe" "src/packages/xunit.runners*"
let xunitToolPath = findToolInSubPath "xunit.console.exe" "src/packages/xunit.runner.console*/tools"
printfn "Using XUnit runner: %s" xunitToolPath
xUnit
xUnit2
(fun p -> { p with OutputDir = testOutput; ToolPath = xunitToolPath })
xunitTestAssemblies

Expand All @@ -230,18 +242,24 @@ Target "RunTestsMono" <| fun _ ->

mkdir testOutput

let xunitToolPath = findToolInSubPath "xunit.console.clr4.exe" "src/packages/xunit.runners*"
let xunitToolPath = findToolInSubPath "xunit.console.exe" "src/packages/xunit.runner.console*/tools"
printfn "Using XUnit runner: %s" xunitToolPath
xUnit
xUnit2
(fun p -> { p with OutputDir = testOutput; ToolPath = xunitToolPath })
xunitTestAssemblies

Target "MultiNodeTests" <| fun _ ->
let multiNodeTestPath = findToolInSubPath "Akka.MultiNodeTestRunner.exe" "bin/core/Akka.MultiNodeTestRunner*"
printfn "Using MultiNodeTestRunner: %s" multiNodeTestPath

let spec = getBuildParam "spec"

let args = new StringBuilder()
|> append "Akka.MultiNodeTests.dll"
|> append "-Dmultinode.enable-filesink=on"
|> appendIfNotNullOrEmpty spec "-Dmultinode.test-spec="
|> toText

let args = "Akka.Cluster.Tests.dll -Dmultinode.enable-filesink=on"
let result = ExecProcess(fun info ->
info.FileName <- multiNodeTestPath
info.WorkingDirectory <- (Path.GetDirectoryName (FullName multiNodeTestPath))
Expand All @@ -256,6 +274,22 @@ Target "RunSqlServerTests" <| fun _ ->
(fun p -> { p with OutputDir = testOutput; ToolPath = xunitToolPath })
sqlServerTests

Target "RunPostgreSqlTests" <| fun _ ->
let postgreSqlTests = !! "src/**/bin/Release/Akka.Persistence.PostgreSql.Tests.dll"
let xunitToolPath = findToolInSubPath "xunit.console.exe" "src/packages/xunit.runner.console*/tools"
printfn "Using XUnit runner: %s" xunitToolPath
xUnit2
(fun p -> { p with OutputDir = testOutput; ToolPath = xunitToolPath })
postgreSqlTests

Target "RunCassandraTests" <| fun _ ->
let cassandraTests = !! "src/**/bin/Release/Akka.Persistence.Cassandra.Tests.dll"
let xunitToolPath = findToolInSubPath "xunit.console.exe" "src/packages/xunit.runner.console*/tools"
printfn "Using XUnit runner: %s" xunitToolPath
xUnit2
(fun p -> { p with OutputDir = testOutput; ToolPath = xunitToolPath })
cassandraTests

//--------------------------------------------------------------------------------
// Nuget targets
//--------------------------------------------------------------------------------
Expand All @@ -266,8 +300,7 @@ module Nuget =
match project with
| "Akka" -> []
| "Akka.Cluster" -> ["Akka.Remote", release.NugetVersion]
| "Akka.Persistence.TestKit" -> ["Akka.Persistence", preReleaseVersion]
| "Akka.Persistence.FSharp" -> ["Akka.Persistence", preReleaseVersion]
| persistence when (persistence.StartsWith("Akka.Persistence.")) -> ["Akka.Persistence", preReleaseVersion]
| di when (di.StartsWith("Akka.DI.") && not (di.EndsWith("Core"))) -> ["Akka.DI.Core", release.NugetVersion]
| testkit when testkit.StartsWith("Akka.TestKit.") -> ["Akka.TestKit", release.NugetVersion]
| _ -> ["Akka", release.NugetVersion]
Expand Down Expand Up @@ -308,7 +341,7 @@ let createNugetPackages _ =
let projectDir = Path.GetDirectoryName nuspec
let projectFile = (!! (projectDir @@ project + ".*sproj")) |> Seq.head
let releaseDir = projectDir @@ @"bin\Release"
let packages = projectDir @@ "packages.config"
let packages = projectDir @@ "packages.config"
let packageDependencies = if (fileExists packages) then (getDependencies packages) else []
let dependencies = packageDependencies @ getAkkaDependency project
let releaseVersion = getProjectVersion project
Expand Down Expand Up @@ -511,7 +544,7 @@ Target "HelpDocs" <| fun _ ->
//--------------------------------------------------------------------------------

// build dependencies
"Clean" ==> "AssemblyInfo" ==> "Build" ==> "CopyOutput" ==> "BuildRelease"
"Clean" ==> "AssemblyInfo" ==> "RestorePackages" ==> "Build" ==> "CopyOutput" ==> "BuildRelease"

// tests dependencies
"CleanTests" ==> "RunTests"
Expand Down
3 changes: 3 additions & 0 deletions src/.nuget/NuGet.Config
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@
<solution>
<add key="disableSourceControlIntegration" value="true" />
</solution>
<activePackageSource>
<add key="nuget.org" value="https://www.nuget.org/api/v2/" />
</activePackageSource>
</configuration>
Loading