diff --git a/.travis.yml b/.travis.yml
index cdcc901..962a9c3 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -9,16 +9,16 @@ env:
matrix:
include:
- os: linux
- dotnet: 2.1.301
+ dist: xenial
+ dotnet: 2.2
- os: osx
osx_image: xcode9 # OSX 10.12
- dotnet: 2.1.301
+ dotnet: 2.2.104
before_install:
- ulimit -n 4096
script:
- - dotnet restore
- - dotnet build --configuration Release
- - dotnet test test/Winton.DomainModelling.DocumentDb.Tests/ --no-build --configuration Release --framework netcoreapp2.1
+ - dotnet build -c Release
+ - dotnet test -c Release --no-build --filter Integration!=true
notifications:
on_success: always
on_failure: always
diff --git a/GitVersion.yml b/GitVersion.yml
new file mode 100644
index 0000000..6e543fe
--- /dev/null
+++ b/GitVersion.yml
@@ -0,0 +1,26 @@
+assembly-versioning-scheme: MajorMinorPatch
+mode: ContinuousDeployment
+
+branches:
+
+ master:
+ regex: master
+ tag: master
+ increment: Minor
+ prevent-increment-of-merged-branch-version: true
+ feature:
+ regex: feature[/-]
+ tag: a{BranchName}
+ increment: Minor
+ prevent-increment-of-merged-branch-version: false
+ patch:
+ regex: patch[/-]
+ tag: useBranchName
+ increment: Patch
+ prevent-increment-of-merged-branch-version: false
+ source-branches: ['release']
+ release:
+ regex: release[/-]
+ tag: rc
+ increment: None
+ prevent-increment-of-merged-branch-version: false
diff --git a/GitVersionConfig.yaml b/GitVersionConfig.yaml
deleted file mode 100644
index 61b7c6a..0000000
--- a/GitVersionConfig.yaml
+++ /dev/null
@@ -1,50 +0,0 @@
-assembly-versioning-scheme: MajorMinorPatch
-mode: ContinuousDeployment
-
-# It would be better to use smarter regexes instead of duplicating everything for local and remote cases.
-# However, GitVersion has some built-in patterns which cannot be removed and these would cause clashes.
-branches:
-
- # These branch patterns cover all local cases
- master:
- regex: master
- tag: master
- increment: Minor
- prevent-increment-of-merged-branch-version: true
- feature:
- regex: feature[/-]
- tag: a{BranchName}
- increment: Minor
- prevent-increment-of-merged-branch-version: false
- patch:
- regex: patch[/-]
- tag: useBranchName
- increment: Patch
- prevent-increment-of-merged-branch-version: false
- release:
- regex: release[/-]
- tag: rc
- increment: None
- prevent-increment-of-merged-branch-version: false
-
- # These branch patterns cover all remote cases
- origin/master:
- regex: origin/master
- tag: master
- increment: Minor
- prevent-increment-of-merged-branch-version: true
- origin/feature:
- regex: origin/feature[/-]
- tag: a{BranchName}
- increment: Minor
- prevent-increment-of-merged-branch-version: false
- origin/patch:
- regex: origin/patch[/-]
- tag: useBranchName
- increment: Patch
- prevent-increment-of-merged-branch-version: false
- origin/release:
- regex: origin/release[/-]
- tag: rc
- increment: None
- prevent-increment-of-merged-branch-version: false
diff --git a/Winton.DomainModelling.DocumentDb.sln b/Winton.DomainModelling.DocumentDb.sln
index 0b1830e..459d64c 100644
--- a/Winton.DomainModelling.DocumentDb.sln
+++ b/Winton.DomainModelling.DocumentDb.sln
@@ -9,7 +9,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
.travis.yml = .travis.yml
appveyor.yml = appveyor.yml
CONTRIBUTING.md = CONTRIBUTING.md
- GitVersionConfig.yaml = GitVersionConfig.yaml
+ GitVersion.yml = GitVersion.yml
icon.jpg = icon.jpg
LICENSE = LICENSE
README.md = README.md
diff --git a/appveyor.yml b/appveyor.yml
index e8763a9..5cb8d30 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -14,12 +14,12 @@ install:
- ps: Import-Module "C:\Program Files\Azure Cosmos DB Emulator\PSModules\Microsoft.Azure.CosmosDB.Emulator"
- ps: Start-CosmosDbEmulator -NoUI -Timeout 0
before_build:
- - dotnet restore
+ - dotnet tool install -g GitVersion.Tool --version 4.0.1-beta1-58
+ - dotnet gitversion /l console /output buildserver
build_script:
- - msbuild /p:GetVersion=True /p:WriteVersionInfoToBuildLog=True
+ - dotnet build -c Release -p:Version=%GitVersion_NuGetVersion%
test_script:
- - dotnet test test/Winton.DomainModelling.DocumentDb.Tests/ --no-build --configuration Release
- - dotnet test test/Winton.DomainModelling.DocumentDb.IntegrationTests/ --no-build --configuration Release
+ - dotnet test -c Release --no-build
artifacts:
- path: .\**\*.nupkg
name: NuGet
diff --git a/src/Winton.DomainModelling.DocumentDb/Winton.DomainModelling.DocumentDb.csproj b/src/Winton.DomainModelling.DocumentDb/Winton.DomainModelling.DocumentDb.csproj
index 925a69b..a46d209 100644
--- a/src/Winton.DomainModelling.DocumentDb/Winton.DomainModelling.DocumentDb.csproj
+++ b/src/Winton.DomainModelling.DocumentDb/Winton.DomainModelling.DocumentDb.csproj
@@ -6,7 +6,6 @@