diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..9ebbb5af --- /dev/null +++ b/.travis.yml @@ -0,0 +1,9 @@ +language: csharp +solution: src/SparkPost.sln +before_install: + - sudo apt-get install nunit-console +before_script: + - nuget restore src/SparkPost.sln +script: + - xbuild /p:Configuration=Release src/SparkPost.sln + - nunit-console /home/travis/build/SparkPost/csharp-sparkpost/src/SparkPost.Tests/bin/Release/SparkPost.Tests.dll diff --git a/src/SparkPost.Tests/SparkPost.Tests.csproj b/src/SparkPost.Tests/SparkPost.Tests.csproj index bca906df..99da3715 100644 --- a/src/SparkPost.Tests/SparkPost.Tests.csproj +++ b/src/SparkPost.Tests/SparkPost.Tests.csproj @@ -9,8 +9,9 @@ Properties SparkPost.Tests SparkPost.Tests - v4.5.2 + v4.5 512 + true @@ -82,7 +83,6 @@ - diff --git a/src/SparkPost.Tests/TransmissionSenderTests.cs b/src/SparkPost.Tests/TransmissionSenderTests.cs deleted file mode 100644 index 851d576e..00000000 --- a/src/SparkPost.Tests/TransmissionSenderTests.cs +++ /dev/null @@ -1,40 +0,0 @@ -using System; -using NUnit.Framework; - -namespace SparkPost.Tests -{ - - [TestFixture] - public class TransmissionsTests - { - private string apiKey; - private string apiHost; - private Client client; - - [SetUp] - public void Setup() - { - apiKey = Guid.NewGuid().ToString(); - client = new Client(apiKey); - } - - [Test] - public void It_should_be_able_to_send_an_email() - { - var transmission = new Transmission - { - Content = - { - From = new Address {Email = "testing@sparkpostbox.com"}, - TemplateId = "my-first-email" - } - }; - - transmission.Recipients.Add(new Recipient {Address = new Address {Email = "darren@cauthon.com"}}); - - var result = client.Transmissions.Send(transmission); - result.Wait(); - } - } - -} \ No newline at end of file diff --git a/src/SparkPost.Tests/packages.config b/src/SparkPost.Tests/packages.config index 5d2ecf5c..2bb98bda 100644 --- a/src/SparkPost.Tests/packages.config +++ b/src/SparkPost.Tests/packages.config @@ -1,9 +1,10 @@  - + + \ No newline at end of file diff --git a/src/SparkPost/SparkPost.csproj b/src/SparkPost/SparkPost.csproj index c5f77d35..eaae82b7 100644 --- a/src/SparkPost/SparkPost.csproj +++ b/src/SparkPost/SparkPost.csproj @@ -9,8 +9,9 @@ Properties SparkPost SparkPost - v4.5.2 + v4.5 512 + true