From 51c283bf9e89535c0dcab610a43be17bad1b4f92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Cerioni?= Date: Wed, 9 May 2018 14:18:09 -0300 Subject: [PATCH 01/27] adds travis config file --- .travis.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.travis.yml b/.travis.yml index 19d008b..9979032 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,5 @@ language: csharp +<<<<<<< HEAD solution: Seed.sln os: linux dotnet: "2.0.0" @@ -10,3 +11,11 @@ script: - dotnet test Seed.Infrastructure.Tests/Seed.Infrastructure.Tests.csproj --configuration release - dotnet test Seed.Api.Tests/Seed.Api.Tests.csproj --configuration release - dotnet test Seed.Data.Tests/Seed.Data.Tests.csproj --configuration release +======= +solution: WebApiCoreSeed.sln +env: DOTNETCORE=1.1 +install: dotnet restore +script: + - dotnet build --configuration release + - dotnet test ~/WebApiCoreSeed.UnitTests/WebApiCoreSeed.UnitTests.csproj --configuration release +>>>>>>> adds travis config file From 0dce9f35bb5c1eafa83212905b964e3fcfeb79ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Cerioni?= Date: Wed, 9 May 2018 14:41:42 -0300 Subject: [PATCH 02/27] travis tigger --- .travis.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9979032..2b5c65c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,6 +16,5 @@ solution: WebApiCoreSeed.sln env: DOTNETCORE=1.1 install: dotnet restore script: - - dotnet build --configuration release - - dotnet test ~/WebApiCoreSeed.UnitTests/WebApiCoreSeed.UnitTests.csproj --configuration release ->>>>>>> adds travis config file + - dotnet build + - dotnet test ~/WebApiCoreSeed.UnitTests/WebApiCoreSeed.UnitTests.csproj --configuration release>>>>>>> adds travis config file From 1eeb1a754af2abb46ff88417821af83a28e893df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Cerioni?= Date: Wed, 9 May 2018 14:51:34 -0300 Subject: [PATCH 03/27] adds os restiction, changes env definition --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 2b5c65c..f182163 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,7 +13,8 @@ script: - dotnet test Seed.Data.Tests/Seed.Data.Tests.csproj --configuration release ======= solution: WebApiCoreSeed.sln -env: DOTNETCORE=1.1 +os: linux +dotnet: "1.1.2" install: dotnet restore script: - dotnet build From a4a8bef70bbdc355df1dc59064b97fb606c943f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Cerioni?= Date: Wed, 9 May 2018 15:02:57 -0300 Subject: [PATCH 04/27] changes dotnet sdk version, removes mono --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index f182163..199ccaa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,8 @@ script: ======= solution: WebApiCoreSeed.sln os: linux -dotnet: "1.1.2" +dotnet: "1.0.4" +mono: none install: dotnet restore script: - dotnet build From 3cdc2a209150829a6e7646656c946698eb37b8a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Cerioni?= Date: Wed, 9 May 2018 15:07:30 -0300 Subject: [PATCH 05/27] changes directory definition --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index 199ccaa..16f96c4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,4 +19,8 @@ mono: none install: dotnet restore script: - dotnet build +<<<<<<< HEAD - dotnet test ~/WebApiCoreSeed.UnitTests/WebApiCoreSeed.UnitTests.csproj --configuration release>>>>>>> adds travis config file +======= + - dotnet test WebApiCoreSeed.UnitTests/WebApiCoreSeed.UnitTests.csproj --configuration release +>>>>>>> changes directory definition From bce10f0896df25c7baa57f6bf4d7f14090bd1981 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Cerioni?= Date: Wed, 9 May 2018 17:03:37 -0300 Subject: [PATCH 06/27] adds sonar integraton --- .travis.yml | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/.travis.yml b/.travis.yml index 16f96c4..19d008b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,4 @@ language: csharp -<<<<<<< HEAD solution: Seed.sln os: linux dotnet: "2.0.0" @@ -11,16 +10,3 @@ script: - dotnet test Seed.Infrastructure.Tests/Seed.Infrastructure.Tests.csproj --configuration release - dotnet test Seed.Api.Tests/Seed.Api.Tests.csproj --configuration release - dotnet test Seed.Data.Tests/Seed.Data.Tests.csproj --configuration release -======= -solution: WebApiCoreSeed.sln -os: linux -dotnet: "1.0.4" -mono: none -install: dotnet restore -script: - - dotnet build -<<<<<<< HEAD - - dotnet test ~/WebApiCoreSeed.UnitTests/WebApiCoreSeed.UnitTests.csproj --configuration release>>>>>>> adds travis config file -======= - - dotnet test WebApiCoreSeed.UnitTests/WebApiCoreSeed.UnitTests.csproj --configuration release ->>>>>>> changes directory definition From 69403c5f00bba55313c05ba683ebe4110c9d47e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Cerioni?= Date: Wed, 9 May 2018 17:07:08 -0300 Subject: [PATCH 07/27] changes a missmached tag --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index 19d008b..1c0502e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,10 @@ solution: Seed.sln os: linux dotnet: "2.0.0" mono: none +before_install: + - sudo apt-get install unzip + - wget -P ~/tools/ "https://github.com/SonarSource/sonar-scanner-msbuild/releases/download/4.2.0.1214/sonar-scanner-msbuild-4.2.0.1214-netcoreapp2.0.zip" + - unzip ~/tools/sonar-scanner-msbuild-4.2.0.1214-netcoreapp2.0.zip -d ~/tools/sonarscaner install: dotnet restore script: - dotnet build --configuration release From 1148b369547551c2104794d02d6be1888f5b0e65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Cerioni?= Date: Wed, 9 May 2018 17:32:04 -0300 Subject: [PATCH 08/27] tries with mono --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 1c0502e..031bec8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,7 @@ before_install: - sudo apt-get install unzip - wget -P ~/tools/ "https://github.com/SonarSource/sonar-scanner-msbuild/releases/download/4.2.0.1214/sonar-scanner-msbuild-4.2.0.1214-netcoreapp2.0.zip" - unzip ~/tools/sonar-scanner-msbuild-4.2.0.1214-netcoreapp2.0.zip -d ~/tools/sonarscaner + - ls ~/tools/sonarscaner install: dotnet restore script: - dotnet build --configuration release From 9b7222114f3d7c2e0ba6c26919b50842ded30d69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Cerioni?= Date: Wed, 9 May 2018 17:41:45 -0300 Subject: [PATCH 09/27] adds mkdirs and sudo --- .travis.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 031bec8..8d7f0d0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,9 +5,12 @@ dotnet: "2.0.0" mono: none before_install: - sudo apt-get install unzip - - wget -P ~/tools/ "https://github.com/SonarSource/sonar-scanner-msbuild/releases/download/4.2.0.1214/sonar-scanner-msbuild-4.2.0.1214-netcoreapp2.0.zip" - - unzip ~/tools/sonar-scanner-msbuild-4.2.0.1214-netcoreapp2.0.zip -d ~/tools/sonarscaner - - ls ~/tools/sonarscaner + - mkdir ~/tools/ + - sudo wget -P ~/tools/ "https://github.com/SonarSource/sonar-scanner-msbuild/releases/download/4.2.0.1214/sonar-scanner-msbuild-4.2.0.1214-netcoreapp2.0.zip" + - sudo ls ~/tools/ + - mkdir ~/tools/sonarscaner + - sudo unzip ~/tools/sonar-scanner-msbuild-4.2.0.1214-netcoreapp2.0.zip -d ~/tools/sonarscaner + - sudo ls ~/tools/sonarscaner install: dotnet restore script: - dotnet build --configuration release From 111915a457ce5f7feb2911f4974b4ffb8de940d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Cerioni?= Date: Wed, 9 May 2018 18:07:26 -0300 Subject: [PATCH 10/27] removes mono --- .travis.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.travis.yml b/.travis.yml index 8d7f0d0..d1a07ce 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,11 @@ language: csharp solution: Seed.sln os: linux +<<<<<<< HEAD dotnet: "2.0.0" +======= +dotnet: "1.0.4" +>>>>>>> removes mono mono: none before_install: - sudo apt-get install unzip @@ -13,8 +17,15 @@ before_install: - sudo ls ~/tools/sonarscaner install: dotnet restore script: +<<<<<<< HEAD - dotnet build --configuration release - dotnet test Seed.Domain.Tests/Seed.Domain.Tests.csproj --configuration release - dotnet test Seed.Infrastructure.Tests/Seed.Infrastructure.Tests.csproj --configuration release - dotnet test Seed.Api.Tests/Seed.Api.Tests.csproj --configuration release - dotnet test Seed.Data.Tests/Seed.Data.Tests.csproj --configuration release +======= + - dotnet ~/tools/sonarscaner/SonarScanner.MSBuild.dll begin /key:makingsensenetcoreseed /d:sonar.host.url="https://sonarcloud.io" /d:sonar.login="05f3cb7e227cb06a2c544264aed57186621df170" /d:sonar.organization=making-sense + - dotnet build + - dotnet ~/tools/sonarscaner/SonarScanner.MSBuild.dll end /d:sonar.login="05f3cb7e227cb06a2c544264aed57186621df170" + - dotnet test WebApiCoreSeed.UnitTests/WebApiCoreSeed.UnitTests.csproj --configuration release +>>>>>>> removes mono From f78e91410a050e7fc087cf49ea1270e955facf1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Cerioni?= Date: Wed, 9 May 2018 19:12:36 -0300 Subject: [PATCH 11/27] (experimental) migrates to 2.0.0 --- Seed.Data/Seed.Data.csproj | 2 +- Seed.Domain/Seed.Domain.csproj | 2 +- Seed.Infrastructure/Seed.Infrastructure.csproj | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Seed.Data/Seed.Data.csproj b/Seed.Data/Seed.Data.csproj index 5f805eb..43094a4 100644 --- a/Seed.Data/Seed.Data.csproj +++ b/Seed.Data/Seed.Data.csproj @@ -1,4 +1,4 @@ - + netcoreapp2.0 diff --git a/Seed.Domain/Seed.Domain.csproj b/Seed.Domain/Seed.Domain.csproj index 5736601..c0346b0 100644 --- a/Seed.Domain/Seed.Domain.csproj +++ b/Seed.Domain/Seed.Domain.csproj @@ -1,4 +1,4 @@ - + netcoreapp2.0 diff --git a/Seed.Infrastructure/Seed.Infrastructure.csproj b/Seed.Infrastructure/Seed.Infrastructure.csproj index 2c19802..9bd1cf9 100644 --- a/Seed.Infrastructure/Seed.Infrastructure.csproj +++ b/Seed.Infrastructure/Seed.Infrastructure.csproj @@ -1,4 +1,4 @@ - + netcoreapp2.0 From 030ca4e9d3ccde4e946223a10cfa2d8616dd4f9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Cerioni?= Date: Wed, 9 May 2018 19:19:21 -0300 Subject: [PATCH 12/27] adds sudo --- .travis.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.travis.yml b/.travis.yml index d1a07ce..e1ed968 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,6 +17,7 @@ before_install: - sudo ls ~/tools/sonarscaner install: dotnet restore script: +<<<<<<< HEAD <<<<<<< HEAD - dotnet build --configuration release - dotnet test Seed.Domain.Tests/Seed.Domain.Tests.csproj --configuration release @@ -29,3 +30,9 @@ script: - dotnet ~/tools/sonarscaner/SonarScanner.MSBuild.dll end /d:sonar.login="05f3cb7e227cb06a2c544264aed57186621df170" - dotnet test WebApiCoreSeed.UnitTests/WebApiCoreSeed.UnitTests.csproj --configuration release >>>>>>> removes mono +======= + - sudo dotnet ~/tools/sonarscaner/SonarScanner.MSBuild.dll begin /key:makingsensenetcoreseed /d:sonar.host.url="https://sonarcloud.io" /d:sonar.login="05f3cb7e227cb06a2c544264aed57186621df170" /d:sonar.organization=making-sense + - dotnet build + - sudo dotnet ~/tools/sonarscaner/SonarScanner.MSBuild.dll end /d:sonar.login="05f3cb7e227cb06a2c544264aed57186621df170" + - dotnet test WebApiCoreSeed.UnitTests/WebApiCoreSeed.UnitTests.csproj --configuration release +>>>>>>> adds sudo From a309be9e805ee1aa958c1fe9c0946966d3714919 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Cerioni?= Date: Wed, 9 May 2018 19:29:13 -0300 Subject: [PATCH 13/27] ads more sudos --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index e1ed968..44f6caa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,7 +32,7 @@ script: >>>>>>> removes mono ======= - sudo dotnet ~/tools/sonarscaner/SonarScanner.MSBuild.dll begin /key:makingsensenetcoreseed /d:sonar.host.url="https://sonarcloud.io" /d:sonar.login="05f3cb7e227cb06a2c544264aed57186621df170" /d:sonar.organization=making-sense - - dotnet build + - sudo dotnet build - sudo dotnet ~/tools/sonarscaner/SonarScanner.MSBuild.dll end /d:sonar.login="05f3cb7e227cb06a2c544264aed57186621df170" - dotnet test WebApiCoreSeed.UnitTests/WebApiCoreSeed.UnitTests.csproj --configuration release >>>>>>> adds sudo From ad6b1cf88b1d83bac9bc756708f35ef68ea0e76b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Cerioni?= Date: Thu, 10 May 2018 10:01:10 -0300 Subject: [PATCH 14/27] adds verbose to sonar --- .travis.yml | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/.travis.yml b/.travis.yml index 44f6caa..8d7f0d0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,7 @@ language: csharp solution: Seed.sln os: linux -<<<<<<< HEAD dotnet: "2.0.0" -======= -dotnet: "1.0.4" ->>>>>>> removes mono mono: none before_install: - sudo apt-get install unzip @@ -17,22 +13,8 @@ before_install: - sudo ls ~/tools/sonarscaner install: dotnet restore script: -<<<<<<< HEAD -<<<<<<< HEAD - dotnet build --configuration release - dotnet test Seed.Domain.Tests/Seed.Domain.Tests.csproj --configuration release - dotnet test Seed.Infrastructure.Tests/Seed.Infrastructure.Tests.csproj --configuration release - dotnet test Seed.Api.Tests/Seed.Api.Tests.csproj --configuration release - dotnet test Seed.Data.Tests/Seed.Data.Tests.csproj --configuration release -======= - - dotnet ~/tools/sonarscaner/SonarScanner.MSBuild.dll begin /key:makingsensenetcoreseed /d:sonar.host.url="https://sonarcloud.io" /d:sonar.login="05f3cb7e227cb06a2c544264aed57186621df170" /d:sonar.organization=making-sense - - dotnet build - - dotnet ~/tools/sonarscaner/SonarScanner.MSBuild.dll end /d:sonar.login="05f3cb7e227cb06a2c544264aed57186621df170" - - dotnet test WebApiCoreSeed.UnitTests/WebApiCoreSeed.UnitTests.csproj --configuration release ->>>>>>> removes mono -======= - - sudo dotnet ~/tools/sonarscaner/SonarScanner.MSBuild.dll begin /key:makingsensenetcoreseed /d:sonar.host.url="https://sonarcloud.io" /d:sonar.login="05f3cb7e227cb06a2c544264aed57186621df170" /d:sonar.organization=making-sense - - sudo dotnet build - - sudo dotnet ~/tools/sonarscaner/SonarScanner.MSBuild.dll end /d:sonar.login="05f3cb7e227cb06a2c544264aed57186621df170" - - dotnet test WebApiCoreSeed.UnitTests/WebApiCoreSeed.UnitTests.csproj --configuration release ->>>>>>> adds sudo From c32443d7d2b4e98502fd92389c6e8a637425d9ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Cerioni?= Date: Thu, 10 May 2018 10:08:46 -0300 Subject: [PATCH 15/27] Removes permissions from sonar executable --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 8d7f0d0..aa76984 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,6 +11,7 @@ before_install: - mkdir ~/tools/sonarscaner - sudo unzip ~/tools/sonar-scanner-msbuild-4.2.0.1214-netcoreapp2.0.zip -d ~/tools/sonarscaner - sudo ls ~/tools/sonarscaner + - sudo chmod 777 ~/tools/sonarscanner -R install: dotnet restore script: - dotnet build --configuration release From 0f92cb4be8021ff933bd21a913da8903162cb3a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Cerioni?= Date: Thu, 10 May 2018 10:14:52 -0300 Subject: [PATCH 16/27] typo, adds badge on readme --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index aa76984..3e1eed3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,9 +8,9 @@ before_install: - mkdir ~/tools/ - sudo wget -P ~/tools/ "https://github.com/SonarSource/sonar-scanner-msbuild/releases/download/4.2.0.1214/sonar-scanner-msbuild-4.2.0.1214-netcoreapp2.0.zip" - sudo ls ~/tools/ - - mkdir ~/tools/sonarscaner - - sudo unzip ~/tools/sonar-scanner-msbuild-4.2.0.1214-netcoreapp2.0.zip -d ~/tools/sonarscaner - - sudo ls ~/tools/sonarscaner + - mkdir ~/tools/sonarscanner + - sudo unzip ~/tools/sonar-scanner-msbuild-4.2.0.1214-netcoreapp2.0.zip -d ~/tools/sonarscanner + - sudo ls ~/tools/sonarscanner - sudo chmod 777 ~/tools/sonarscanner -R install: dotnet restore script: From d2b0920067e5b4a7c0218da93143a8b4873c1bb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Cerioni?= Date: Thu, 10 May 2018 12:06:00 -0300 Subject: [PATCH 17/27] adds coverlet support --- .travis.yml | 4 ++- .../WebApiCoreSeed.UnitTests.csproj | 27 +++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 WebApiCoreSeed.UnitTests/WebApiCoreSeed.UnitTests.csproj diff --git a/.travis.yml b/.travis.yml index 3e1eed3..24184ea 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,7 +12,9 @@ before_install: - sudo unzip ~/tools/sonar-scanner-msbuild-4.2.0.1214-netcoreapp2.0.zip -d ~/tools/sonarscanner - sudo ls ~/tools/sonarscanner - sudo chmod 777 ~/tools/sonarscanner -R -install: dotnet restore +install: + - dotnet add package coverlet.msbuild + - dotnet restore script: - dotnet build --configuration release - dotnet test Seed.Domain.Tests/Seed.Domain.Tests.csproj --configuration release diff --git a/WebApiCoreSeed.UnitTests/WebApiCoreSeed.UnitTests.csproj b/WebApiCoreSeed.UnitTests/WebApiCoreSeed.UnitTests.csproj new file mode 100644 index 0000000..933feb3 --- /dev/null +++ b/WebApiCoreSeed.UnitTests/WebApiCoreSeed.UnitTests.csproj @@ -0,0 +1,27 @@ + + + + netcoreapp2.0 + + + + + + + + + + + + + + + + + + + + + + + From c57e58747c97ff0e06f9a5ad3f5aa3dbb69bbde3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Cerioni?= Date: Thu, 10 May 2018 12:06:29 -0300 Subject: [PATCH 18/27] removes an unecesary package add --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 24184ea..2ddb14e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,7 +13,6 @@ before_install: - sudo ls ~/tools/sonarscanner - sudo chmod 777 ~/tools/sonarscanner -R install: - - dotnet add package coverlet.msbuild - dotnet restore script: - dotnet build --configuration release From cb083393dbe864bb4049f11a7a11475f16531280 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Cerioni?= Date: Thu, 10 May 2018 12:15:50 -0300 Subject: [PATCH 19/27] ignores coverlet autogenerated files, changes $pwd definition --- .gitignore | 5 ++++- .travis.yml | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 4937f40..d9a6d19 100644 --- a/.gitignore +++ b/.gitignore @@ -157,4 +157,7 @@ nCrunchTemp* *.playlist #vs code config -.vscode \ No newline at end of file +.vscode + +#coverlet coverage files +WebApiCoreSeed.UnitTests/coverage.xml \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 2ddb14e..eb5ae70 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,7 @@ before_install: - sudo unzip ~/tools/sonar-scanner-msbuild-4.2.0.1214-netcoreapp2.0.zip -d ~/tools/sonarscanner - sudo ls ~/tools/sonarscanner - sudo chmod 777 ~/tools/sonarscanner -R + - ECHO $(PWD)/WebApiCoreSeed.UnitTests/ install: - dotnet restore script: From 2b7589a2e7c4b8b2df2ae9809382de048ed21c33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Cerioni?= Date: Thu, 10 May 2018 12:26:18 -0300 Subject: [PATCH 20/27] fixes a typo --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index eb5ae70..56943de 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,7 +12,7 @@ before_install: - sudo unzip ~/tools/sonar-scanner-msbuild-4.2.0.1214-netcoreapp2.0.zip -d ~/tools/sonarscanner - sudo ls ~/tools/sonarscanner - sudo chmod 777 ~/tools/sonarscanner -R - - ECHO $(PWD)/WebApiCoreSeed.UnitTests/ + - printf $(pwd)/WebApiCoreSeed.UnitTests/coverage.xml install: - dotnet restore script: From 0abf005dcc72b2b6e2d0aa1ab231698416b63fc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Cerioni?= Date: Thu, 10 May 2018 12:41:08 -0300 Subject: [PATCH 21/27] adds sonar badges, removes debug travis code, updates gitignore --- .gitignore | 5 ++++- .travis.yml | 3 --- Readme.md | 6 ++++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index d9a6d19..acb5202 100644 --- a/.gitignore +++ b/.gitignore @@ -160,4 +160,7 @@ nCrunchTemp* .vscode #coverlet coverage files -WebApiCoreSeed.UnitTests/coverage.xml \ No newline at end of file +WebApiCoreSeed.UnitTests/coverage.xml + +#sonar qube auto generated files +.sonarqube \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 56943de..403e8ac 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,12 +7,9 @@ before_install: - sudo apt-get install unzip - mkdir ~/tools/ - sudo wget -P ~/tools/ "https://github.com/SonarSource/sonar-scanner-msbuild/releases/download/4.2.0.1214/sonar-scanner-msbuild-4.2.0.1214-netcoreapp2.0.zip" - - sudo ls ~/tools/ - mkdir ~/tools/sonarscanner - sudo unzip ~/tools/sonar-scanner-msbuild-4.2.0.1214-netcoreapp2.0.zip -d ~/tools/sonarscanner - - sudo ls ~/tools/sonarscanner - sudo chmod 777 ~/tools/sonarscanner -R - - printf $(pwd)/WebApiCoreSeed.UnitTests/coverage.xml install: - dotnet restore script: diff --git a/Readme.md b/Readme.md index a817a84..f24b7f7 100644 --- a/Readme.md +++ b/Readme.md @@ -1,5 +1,7 @@ -# WebapiCore-seed [![Build Status](https://travis-ci.org/MakingSense/WebApiCore-Seed.svg?branch=master)](https://travis-ci.org/MakingSense/WebApiCore-Seed) - +# WebapiCore-seed +[![Build Status](https://travis-ci.org/MakingSense/WebApiCore-Seed.svg?branch=master)](https://travis-ci.org/MakingSense/WebApiCore-Seed) +[![Quality Gate](https://travis-ci.org/MakingSense/WebApiCore-Seed.svg?branch=master)](https://sonarcloud.io/api/project_badges/measure?project=makingsensenetcoreseed&metric=alert_status) +[![Coverage](https://travis-ci.org/MakingSense/WebApiCore-Seed.svg?branch=master)](https://sonarcloud.io/api/project_badges/measure?project=makingsensenetcoreseed&metric=coverage) ## Prerequisites .NET Core SDK From abccc21eabac7a06ced5c8fce701de7ba9555897 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Cerioni?= Date: Wed, 16 May 2018 15:10:24 -0300 Subject: [PATCH 22/27] removes merge confilcts --- .../WebApiCoreSeed.UnitTests.csproj | 27 ------------------- 1 file changed, 27 deletions(-) delete mode 100644 WebApiCoreSeed.UnitTests/WebApiCoreSeed.UnitTests.csproj diff --git a/WebApiCoreSeed.UnitTests/WebApiCoreSeed.UnitTests.csproj b/WebApiCoreSeed.UnitTests/WebApiCoreSeed.UnitTests.csproj deleted file mode 100644 index 933feb3..0000000 --- a/WebApiCoreSeed.UnitTests/WebApiCoreSeed.UnitTests.csproj +++ /dev/null @@ -1,27 +0,0 @@ - - - - netcoreapp2.0 - - - - - - - - - - - - - - - - - - - - - - - From 4dba7128875e1367995e964436c66ef9604646ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Cerioni?= Date: Wed, 16 May 2018 15:18:19 -0300 Subject: [PATCH 23/27] adds sonar cloud intergration --- .travis.yml | 10 ++++++---- Seed.Api.Tests/Seed.Api.Tests.csproj | 1 + Seed.Data.Tests/Seed.Data.Tests.csproj | 1 + Seed.Domain.Tests/Seed.Domain.Tests.csproj | 1 + .../Seed.Infrastructure.Tests.csproj | 1 + 5 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 403e8ac..f5a2619 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,8 +13,10 @@ before_install: install: - dotnet restore script: + - sudo dotnet ~/tools/sonarscanner/SonarScanner.MSBuild.dll begin /key:makingsensenetcoreseed /d:sonar.host.url="https://sonarcloud.io" /d:sonar.login="05f3cb7e227cb06a2c544264aed57186621df170" /d:sonar.organization=making-sense /d:sonar.verbose=true /d:sonar.cs.opencover.reportsPaths="$(pwd)/Seed.*.Tests/coverage.xml" - dotnet build --configuration release - - dotnet test Seed.Domain.Tests/Seed.Domain.Tests.csproj --configuration release - - dotnet test Seed.Infrastructure.Tests/Seed.Infrastructure.Tests.csproj --configuration release - - dotnet test Seed.Api.Tests/Seed.Api.Tests.csproj --configuration release - - dotnet test Seed.Data.Tests/Seed.Data.Tests.csproj --configuration release + - dotnet test Seed.Domain.Tests/Seed.Domain.Tests.csproj /p:CollectCoverage=true /p:CoverletOutputFormat=opencover --configuration release + - dotnet test Seed.Infrastructure.Tests/Seed.Infrastructure.Tests.csproj /p:CollectCoverage=true /p:CoverletOutputFormat=opencover --configuration release + - dotnet test Seed.Api.Tests/Seed.Api.Tests.csproj /p:CollectCoverage=true /p:CoverletOutputFormat=opencover --configuration release + - dotnet test Seed.Data.Tests/Seed.Data.Tests.csproj /p:CollectCoverage=true /p:CoverletOutputFormat=opencover --configuration release + - sudo dotnet ~/tools/sonarscanner/SonarScanner.MSBuild.dll end /d:sonar.login="05f3cb7e227cb06a2c544264aed57186621df170" \ No newline at end of file diff --git a/Seed.Api.Tests/Seed.Api.Tests.csproj b/Seed.Api.Tests/Seed.Api.Tests.csproj index e41a058..67714fa 100644 --- a/Seed.Api.Tests/Seed.Api.Tests.csproj +++ b/Seed.Api.Tests/Seed.Api.Tests.csproj @@ -7,6 +7,7 @@ + diff --git a/Seed.Data.Tests/Seed.Data.Tests.csproj b/Seed.Data.Tests/Seed.Data.Tests.csproj index ac9e8fe..2df82e3 100644 --- a/Seed.Data.Tests/Seed.Data.Tests.csproj +++ b/Seed.Data.Tests/Seed.Data.Tests.csproj @@ -7,6 +7,7 @@ + diff --git a/Seed.Domain.Tests/Seed.Domain.Tests.csproj b/Seed.Domain.Tests/Seed.Domain.Tests.csproj index 4fae266..e5fdc61 100644 --- a/Seed.Domain.Tests/Seed.Domain.Tests.csproj +++ b/Seed.Domain.Tests/Seed.Domain.Tests.csproj @@ -7,6 +7,7 @@ + diff --git a/Seed.Infrastructure.Tests/Seed.Infrastructure.Tests.csproj b/Seed.Infrastructure.Tests/Seed.Infrastructure.Tests.csproj index 7112185..18dc452 100644 --- a/Seed.Infrastructure.Tests/Seed.Infrastructure.Tests.csproj +++ b/Seed.Infrastructure.Tests/Seed.Infrastructure.Tests.csproj @@ -7,6 +7,7 @@ + From a221b75a79a92d0b3e881096ba9d19a271548d2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Cerioni?= Date: Wed, 16 May 2018 15:22:54 -0300 Subject: [PATCH 24/27] updates badges --- Readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Readme.md b/Readme.md index f24b7f7..658bb12 100644 --- a/Readme.md +++ b/Readme.md @@ -1,7 +1,7 @@ # WebapiCore-seed [![Build Status](https://travis-ci.org/MakingSense/WebApiCore-Seed.svg?branch=master)](https://travis-ci.org/MakingSense/WebApiCore-Seed) -[![Quality Gate](https://travis-ci.org/MakingSense/WebApiCore-Seed.svg?branch=master)](https://sonarcloud.io/api/project_badges/measure?project=makingsensenetcoreseed&metric=alert_status) -[![Coverage](https://travis-ci.org/MakingSense/WebApiCore-Seed.svg?branch=master)](https://sonarcloud.io/api/project_badges/measure?project=makingsensenetcoreseed&metric=coverage) +[![Quality Gate](https://sonarcloud.io/api/project_badges/measure?project=makingsensenetcoreseed&metric=alert_status)](https://sonarcloud.io/dashboard?id=makingsensenetcoreseed) +[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=makingsensenetcoreseed&metric=coverage)](https://sonarcloud.io/component_measures?id=makingsensenetcoreseed&metric=coverage) ## Prerequisites .NET Core SDK From 62318d197ed4d88443157ce3360700abd6e54c68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Cerioni?= Date: Wed, 16 May 2018 15:28:20 -0300 Subject: [PATCH 25/27] adds sudos --- .travis.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index f5a2619..7608b3c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,9 +14,9 @@ install: - dotnet restore script: - sudo dotnet ~/tools/sonarscanner/SonarScanner.MSBuild.dll begin /key:makingsensenetcoreseed /d:sonar.host.url="https://sonarcloud.io" /d:sonar.login="05f3cb7e227cb06a2c544264aed57186621df170" /d:sonar.organization=making-sense /d:sonar.verbose=true /d:sonar.cs.opencover.reportsPaths="$(pwd)/Seed.*.Tests/coverage.xml" - - dotnet build --configuration release - - dotnet test Seed.Domain.Tests/Seed.Domain.Tests.csproj /p:CollectCoverage=true /p:CoverletOutputFormat=opencover --configuration release - - dotnet test Seed.Infrastructure.Tests/Seed.Infrastructure.Tests.csproj /p:CollectCoverage=true /p:CoverletOutputFormat=opencover --configuration release - - dotnet test Seed.Api.Tests/Seed.Api.Tests.csproj /p:CollectCoverage=true /p:CoverletOutputFormat=opencover --configuration release - - dotnet test Seed.Data.Tests/Seed.Data.Tests.csproj /p:CollectCoverage=true /p:CoverletOutputFormat=opencover --configuration release + - sudo dotnet build --configuration release + - sudo dotnet test Seed.Domain.Tests/Seed.Domain.Tests.csproj /p:CollectCoverage=true /p:CoverletOutputFormat=opencover --configuration release + - sudo dotnet test Seed.Infrastructure.Tests/Seed.Infrastructure.Tests.csproj /p:CollectCoverage=true /p:CoverletOutputFormat=opencover --configuration release + - sudo dotnet test Seed.Api.Tests/Seed.Api.Tests.csproj /p:CollectCoverage=true /p:CoverletOutputFormat=opencover --configuration release + - sudo dotnet test Seed.Data.Tests/Seed.Data.Tests.csproj /p:CollectCoverage=true /p:CoverletOutputFormat=opencover --configuration release - sudo dotnet ~/tools/sonarscanner/SonarScanner.MSBuild.dll end /d:sonar.login="05f3cb7e227cb06a2c544264aed57186621df170" \ No newline at end of file From fc4a884564c5f74a012dc334dc396960a1a41261 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Cerioni?= Date: Wed, 16 May 2018 15:43:33 -0300 Subject: [PATCH 26/27] excludes test from sonar scan --- Seed.Api.Tests/Seed.Api.Tests.csproj | 7 ++++++- Seed.Data.Tests/Seed.Data.Tests.csproj | 7 ++++++- Seed.Domain.Tests/Seed.Domain.Tests.csproj | 5 +++++ Seed.Infrastructure.Tests/Seed.Infrastructure.Tests.csproj | 5 +++++ 4 files changed, 22 insertions(+), 2 deletions(-) diff --git a/Seed.Api.Tests/Seed.Api.Tests.csproj b/Seed.Api.Tests/Seed.Api.Tests.csproj index 67714fa..28e2a52 100644 --- a/Seed.Api.Tests/Seed.Api.Tests.csproj +++ b/Seed.Api.Tests/Seed.Api.Tests.csproj @@ -5,7 +5,12 @@ false - + + + + true + + diff --git a/Seed.Data.Tests/Seed.Data.Tests.csproj b/Seed.Data.Tests/Seed.Data.Tests.csproj index 2df82e3..82300fb 100644 --- a/Seed.Data.Tests/Seed.Data.Tests.csproj +++ b/Seed.Data.Tests/Seed.Data.Tests.csproj @@ -5,7 +5,12 @@ false - + + + + true + + diff --git a/Seed.Domain.Tests/Seed.Domain.Tests.csproj b/Seed.Domain.Tests/Seed.Domain.Tests.csproj index e5fdc61..37dc223 100644 --- a/Seed.Domain.Tests/Seed.Domain.Tests.csproj +++ b/Seed.Domain.Tests/Seed.Domain.Tests.csproj @@ -5,6 +5,11 @@ false + + + + true + diff --git a/Seed.Infrastructure.Tests/Seed.Infrastructure.Tests.csproj b/Seed.Infrastructure.Tests/Seed.Infrastructure.Tests.csproj index 18dc452..eeefa80 100644 --- a/Seed.Infrastructure.Tests/Seed.Infrastructure.Tests.csproj +++ b/Seed.Infrastructure.Tests/Seed.Infrastructure.Tests.csproj @@ -5,6 +5,11 @@ false + + + + true + From 87c842b1e366b4c48e867c44dd82f3fa5e2616c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Cerioni?= Date: Wed, 16 May 2018 15:55:14 -0300 Subject: [PATCH 27/27] updates gitignore --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index acb5202..0e878f8 100644 --- a/.gitignore +++ b/.gitignore @@ -160,7 +160,7 @@ nCrunchTemp* .vscode #coverlet coverage files -WebApiCoreSeed.UnitTests/coverage.xml +coverage.xml #sonar qube auto generated files .sonarqube \ No newline at end of file