From 4fb32a0028eb616884d5d95a6ee9862290649f54 Mon Sep 17 00:00:00 2001 From: "FOLIO3PK\\muhammadnoman" Date: Thu, 11 Apr 2019 18:46:36 +0500 Subject: [PATCH 1/7] added project --- .gitignore | 58 +++++++++++++++++++ .travis.yml | 8 +++ buildApp.sh | 2 + .../travisIntegrationTesting.sln | 25 ++++++++ .../travisIntegrationTesting/App.config | 6 ++ .../travisIntegrationTesting/Program.cs | 15 +++++ .../Properties/AssemblyInfo.cs | 36 ++++++++++++ .../travisIntegrationTesting.csproj | 53 +++++++++++++++++ 8 files changed, 203 insertions(+) create mode 100644 .gitignore create mode 100644 .travis.yml create mode 100644 buildApp.sh create mode 100644 travisIntegrationTesting/travisIntegrationTesting.sln create mode 100644 travisIntegrationTesting/travisIntegrationTesting/App.config create mode 100644 travisIntegrationTesting/travisIntegrationTesting/Program.cs create mode 100644 travisIntegrationTesting/travisIntegrationTesting/Properties/AssemblyInfo.cs create mode 100644 travisIntegrationTesting/travisIntegrationTesting/travisIntegrationTesting.csproj diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a645245 --- /dev/null +++ b/.gitignore @@ -0,0 +1,58 @@ +# Finder +.DS_Store + +# Extracts from CC0 https://github.com/github/gitignore/blob/master/VisualStudio.gitignore + +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore + +## User-specific files +*.suo +*.user +*.userosscache +*.sln.docstates + +## User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +## Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ + +## Visual Studio 2015 cache/options directory +.vs/ + +## NuGet Packages +*.nupkg +## The packages folder can be ignored because of Package Restore +**/packages/* +## except build/, which is used as an MSBuild target. +!**/packages/build/ +## Uncomment if necessary however generally it will be regenerated when needed +##!**/packages/repositories.config +## NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +## Backup & report files from converting an old project file +## to a newer Visual Studio version. Backup files are not needed, +## because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm + +# Optimizely specific: + +sdk/ +datafile.json \ No newline at end of file diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..565d7a0 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,8 @@ +os: windows +jobs: + include: + - stage: 'Building and running Net Framerwork console app' + cache: false + script: + - bash ./buildApp.sh + - travisIntegrationTesting/travisIntegrationTesting/bin/Debug/travisIntegrationTesting.exe \ No newline at end of file diff --git a/buildApp.sh b/buildApp.sh new file mode 100644 index 0000000..1d43677 --- /dev/null +++ b/buildApp.sh @@ -0,0 +1,2 @@ +cd ./travisIntegrationTesting +msbuild ./travisIntegrationTesting/travisIntegrationTesting.csproj \ No newline at end of file diff --git a/travisIntegrationTesting/travisIntegrationTesting.sln b/travisIntegrationTesting/travisIntegrationTesting.sln new file mode 100644 index 0000000..2de7298 --- /dev/null +++ b/travisIntegrationTesting/travisIntegrationTesting.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.27130.2010 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "travisIntegrationTesting", "travisIntegrationTesting\travisIntegrationTesting.csproj", "{10F0DC1C-4436-4881-89CD-CA81B43E91E9}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {10F0DC1C-4436-4881-89CD-CA81B43E91E9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {10F0DC1C-4436-4881-89CD-CA81B43E91E9}.Debug|Any CPU.Build.0 = Debug|Any CPU + {10F0DC1C-4436-4881-89CD-CA81B43E91E9}.Release|Any CPU.ActiveCfg = Release|Any CPU + {10F0DC1C-4436-4881-89CD-CA81B43E91E9}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {169DFB85-72AF-444B-A7FC-5EE4E439ED3D} + EndGlobalSection +EndGlobal diff --git a/travisIntegrationTesting/travisIntegrationTesting/App.config b/travisIntegrationTesting/travisIntegrationTesting/App.config new file mode 100644 index 0000000..d1428ad --- /dev/null +++ b/travisIntegrationTesting/travisIntegrationTesting/App.config @@ -0,0 +1,6 @@ + + + + + + diff --git a/travisIntegrationTesting/travisIntegrationTesting/Program.cs b/travisIntegrationTesting/travisIntegrationTesting/Program.cs new file mode 100644 index 0000000..d2dff68 --- /dev/null +++ b/travisIntegrationTesting/travisIntegrationTesting/Program.cs @@ -0,0 +1,15 @@ +using System; + +namespace travisIntegrationTesting +{ + class Program + { + static void Main(string[] args) + { + for (int i = 0; i < 100; i++) + { + Console.WriteLine("App is running " + i); + } + } + } +} diff --git a/travisIntegrationTesting/travisIntegrationTesting/Properties/AssemblyInfo.cs b/travisIntegrationTesting/travisIntegrationTesting/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..69921e4 --- /dev/null +++ b/travisIntegrationTesting/travisIntegrationTesting/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("travisIntegrationTesting")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("travisIntegrationTesting")] +[assembly: AssemblyCopyright("Copyright © 2019")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("10f0dc1c-4436-4881-89cd-ca81b43e91e9")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/travisIntegrationTesting/travisIntegrationTesting/travisIntegrationTesting.csproj b/travisIntegrationTesting/travisIntegrationTesting/travisIntegrationTesting.csproj new file mode 100644 index 0000000..338b00a --- /dev/null +++ b/travisIntegrationTesting/travisIntegrationTesting/travisIntegrationTesting.csproj @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + {10F0DC1C-4436-4881-89CD-CA81B43E91E9} + Exe + travisIntegrationTesting + travisIntegrationTesting + v4.5 + 512 + true + + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file From ce035d7ea65750fbbbc1271fb7b0caa61d75b9cd Mon Sep 17 00:00:00 2001 From: "FOLIO3PK\\muhammadnoman" Date: Thu, 11 Apr 2019 19:01:51 +0500 Subject: [PATCH 2/7] added language csharp --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 565d7a0..e6a6295 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,5 @@ os: windows +language: csharp jobs: include: - stage: 'Building and running Net Framerwork console app' From 9eb021a817f91e06e16fb50b281bbd81d67ec91d Mon Sep 17 00:00:00 2001 From: "FOLIO3PK\\muhammadnoman" Date: Thu, 11 Apr 2019 19:06:39 +0500 Subject: [PATCH 3/7] changed to supported language --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index e6a6295..45b32ba 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ os: windows -language: csharp +language: cpp jobs: include: - stage: 'Building and running Net Framerwork console app' From d54b41870f711e1329c5dd408a564940ab7f9481 Mon Sep 17 00:00:00 2001 From: "FOLIO3PK\\muhammadnoman" Date: Thu, 11 Apr 2019 19:10:14 +0500 Subject: [PATCH 4/7] gave rights to buildApp.sh --- buildApp.sh | 3 +++ 1 file changed, 3 insertions(+) mode change 100644 => 100755 buildApp.sh diff --git a/buildApp.sh b/buildApp.sh old mode 100644 new mode 100755 index 1d43677..ec35cc5 --- a/buildApp.sh +++ b/buildApp.sh @@ -1,2 +1,5 @@ +#!/usr/bin/env bash +set -ex + cd ./travisIntegrationTesting msbuild ./travisIntegrationTesting/travisIntegrationTesting.csproj \ No newline at end of file From d230e8ed9af600f2eb16077f9d2a194d2ea0b4ed Mon Sep 17 00:00:00 2001 From: "FOLIO3PK\\muhammadnoman" Date: Thu, 11 Apr 2019 19:17:58 +0500 Subject: [PATCH 5/7] loging directory structure --- buildApp.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/buildApp.sh b/buildApp.sh index ec35cc5..a53d8f3 100755 --- a/buildApp.sh +++ b/buildApp.sh @@ -2,4 +2,8 @@ set -ex cd ./travisIntegrationTesting -msbuild ./travisIntegrationTesting/travisIntegrationTesting.csproj \ No newline at end of file +"C:\Program Files (x86)\MSBuild\14.0\Bin\Msbuild.exe" ./travisIntegrationTesting/travisIntegrationTesting.csproj + +cd C: +ls windows/Microsoft.NET/ +ls "C:\Program Files (x86)\MSBuild\14.0\Bin" \ No newline at end of file From e687d02544ff35f0057b0009be54a045b16b049d Mon Sep 17 00:00:00 2001 From: "FOLIO3PK\\muhammadnoman" Date: Thu, 11 Apr 2019 19:27:32 +0500 Subject: [PATCH 6/7] dir structutre --- buildApp.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/buildApp.sh b/buildApp.sh index a53d8f3..18260bd 100755 --- a/buildApp.sh +++ b/buildApp.sh @@ -1,8 +1,9 @@ #!/usr/bin/env bash set -ex +ls "C:\Windows\Microsoft.NET\Framework" cd ./travisIntegrationTesting -"C:\Program Files (x86)\MSBuild\14.0\Bin\Msbuild.exe" ./travisIntegrationTesting/travisIntegrationTesting.csproj +"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Msbuild.exe" ./travisIntegrationTesting/travisIntegrationTesting.csproj cd C: ls windows/Microsoft.NET/ From 7e41112378a1749d91bead89d58516a94bd8592b Mon Sep 17 00:00:00 2001 From: "FOLIO3PK\\muhammadnoman" Date: Thu, 11 Apr 2019 20:03:46 +0500 Subject: [PATCH 7/7] removed extra lines --- buildApp.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/buildApp.sh b/buildApp.sh index 18260bd..f3685f2 100755 --- a/buildApp.sh +++ b/buildApp.sh @@ -1,10 +1,5 @@ #!/usr/bin/env bash set -ex -ls "C:\Windows\Microsoft.NET\Framework" cd ./travisIntegrationTesting -"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Msbuild.exe" ./travisIntegrationTesting/travisIntegrationTesting.csproj - -cd C: -ls windows/Microsoft.NET/ -ls "C:\Program Files (x86)\MSBuild\14.0\Bin" \ No newline at end of file +"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Msbuild.exe" ./travisIntegrationTesting/travisIntegrationTesting.csproj \ No newline at end of file