From fbb9b76d17070499b04bb2e788394b1d546b6f90 Mon Sep 17 00:00:00 2001 From: Ssavan99 <58150774+Ssavan99@users.noreply.github.com> Date: Wed, 31 Mar 2021 19:44:27 -0500 Subject: [PATCH 1/3] .travis.yml --- .travis.yml | 9 +++++++++ TravisCI.sln | 9 +++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..3d6d6f8b --- /dev/null +++ b/.travis.yml @@ -0,0 +1,9 @@ +language: csharp +solution: TravisCI.sln +branches: + only: + - master +install: + - nuget restore TravisCI.sln +script: + - msbuild /p:Configuration=Release TravisCI.sln \ No newline at end of file diff --git a/TravisCI.sln b/TravisCI.sln index c3edf276..dcefc2b5 100644 --- a/TravisCI.sln +++ b/TravisCI.sln @@ -1,12 +1,17 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 15 -VisualStudioVersion = 15.0.27130.2036 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30907.101 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Console", "Console\Console.csproj", "{C5964EEF-DA27-4C98-B4D0-7F27767FE870}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests", "Tests\Tests.csproj", "{C3F293D9-3D79-4280-9E67-9E51A00E94F3}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{D066EE38-B968-4F7B-BC9B-129F00F9774F}" + ProjectSection(SolutionItems) = preProject + .travis.yml = .travis.yml + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU From 27d556430c8751ccce77f048991e1e3a3e59b033 Mon Sep 17 00:00:00 2001 From: Ssavan99 <58150774+Ssavan99@users.noreply.github.com> Date: Wed, 31 Mar 2021 20:10:41 -0500 Subject: [PATCH 2/3] 1st push --- Console/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Console/Program.cs b/Console/Program.cs index b3fcdf6a..f0c618ae 100644 --- a/Console/Program.cs +++ b/Console/Program.cs @@ -84,7 +84,7 @@ public static double Divide(string x, string y) // Implement this method following a similar pattern as above public static double Power(string x, string y) { - throw new NotImplementedException(); + return Math.Pow(double.Parse(x), double.Parse(y)); } } From b504008ff988250bba343bc1deb773aa3412c3ca Mon Sep 17 00:00:00 2001 From: Ssavan99 <58150774+Ssavan99@users.noreply.github.com> Date: Wed, 31 Mar 2021 20:22:15 -0500 Subject: [PATCH 3/3] changes in .travis.yml --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 3d6d6f8b..afd0e8a7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,4 +6,5 @@ branches: install: - nuget restore TravisCI.sln script: - - msbuild /p:Configuration=Release TravisCI.sln \ No newline at end of file + - msbuild /p:Configuration=Release TravisCI.sln + - mono ./packages/NUnit.ConsoleRunner.*/tools/nunit3-console.exe ./Tests/bin/Release/Tests.dll \ No newline at end of file