diff options
author | Elmer Thomas <elmer@thinkingserious.com> | 2016-12-06 16:17:35 -0800 |
---|---|---|
committer | Elmer Thomas <elmer@thinkingserious.com> | 2016-12-06 16:17:35 -0800 |
commit | e82ced5260b94449145d760cabf8c697bc8eb4a5 (patch) | |
tree | 10c886e065172ac93882d4b02099770b41cf6c98 | |
parent | 97483a6f046b43777a40977c08275dac21555277 (diff) | |
download | sendgrid-csharp-e82ced5260b94449145d760cabf8c697bc8eb4a5.zip sendgrid-csharp-e82ced5260b94449145d760cabf8c697bc8eb4a5.tar.gz sendgrid-csharp-e82ced5260b94449145d760cabf8c697bc8eb4a5.tar.bz2 |
New dotnet test process
-rw-r--r-- | .travis.yml | 4 | ||||
-rw-r--r-- | src/SendGrid/Client.cs | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml index 114b8da..eea3e1f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,8 +33,8 @@ before_script: - nohup prism run -s https://raw.githubusercontent.com/sendgrid/sendgrid-oai/master/oai_stoplight.json & script: - - if [ -n "${DOTNETCORE}" ]; then mkdir bla && cd bla && dotnet new && time dotnet restore && dotnet run; fi - - if [ -z "${DOTNETCORE}" ]; then mkdir bla && cd bla && dotnet new && time dotnet restore; fi + - if [ -n "${DOTNETCORE}" ]; then dotnet restore && dotnet build ./src/SendGrid -c Release; fi + - if [ -z "${DOTNETCORE}" ]; then dotnet restore && dotnet build ./src/SendGrid -c Release; fi - if [ -z "${DOTNETCORE}" ]; then xbuild /p:Configuration=Release SendGrid.sln; fi - if [ -z "${DOTNETCORE}" ]; then ./testrunner/NUnit.Runners.3.2.0/tools/nunit-console.exe ./UnitTest/bin/Release/UnitTest.dll; fi diff --git a/src/SendGrid/Client.cs b/src/SendGrid/Client.cs index fe4996b..5711a52 100644 --- a/src/SendGrid/Client.cs +++ b/src/SendGrid/Client.cs @@ -189,10 +189,8 @@ namespace SendGrid PreAuthenticate = true, UseDefaultCredentials = false, }; - return new HttpClient(httpClientHandler); } - return new HttpClient(); } |