From e5d3ba36ccf0ff35f4dedab6ff8a61deb707ee72 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Sun, 9 May 2021 15:33:14 +0100 Subject: [PATCH] testing? --- .gitignore | 2 -- .gitlab-ci.yml | 4 +++- test/nuget.host.tests/appsettings.Development.json | 12 ++++++++++++ 3 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 test/nuget.host.tests/appsettings.Development.json diff --git a/.gitignore b/.gitignore index 9f8c412..98a1265 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,7 @@ /packages/ /bin/ /obj/ -appsettings.Testing.json test/nuget.host.tests/bin/ test/nuget.host.tests/obj -appsettings.Development.json src/nuget-host/bin/ src/nuget-host/obj/ diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 27cc3e0..d86e6e8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,13 +22,15 @@ build1: nonreg: stage: test script: - - dotnet test + - dotnet user-secrets set ConnectionStrings:DefaultConnection "$TESTDBCXSTRING" --project test/nuget.host.tests/ + - ASPNETCORE_ENVIRONMENT=Development dotnet test test2: stage: test script: - echo "Do another parallel test here" - echo "For example run a lint test" + - publish: stage: deploy diff --git a/test/nuget.host.tests/appsettings.Development.json b/test/nuget.host.tests/appsettings.Development.json new file mode 100644 index 0000000..a607b25 --- /dev/null +++ b/test/nuget.host.tests/appsettings.Development.json @@ -0,0 +1,12 @@ +{ + "Nuget": { + "PackagesRootDir" : "packages", + "MaxUserKeyCount": 5 + }, + "Smtp": { + "Server": "localhost", + "Port": 25, + "SenderName": "Paul Schneider", + "SenderEmail": "paul@pschneider.fr" + } +}