From cbc102adee3bc04fc95918fd0010ec04c9184005 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Derriey?= Date: Mon, 12 Sep 2016 20:06:50 +1000 Subject: [PATCH 01/14] adding .NET Core solution and projects --- .gitignore | 5 +++- Octokit.Core.sln | 28 +++++++++++++++++++ Octokit.Next.Tests/CalculatorTests.cs | 24 ++++++++++++++++ Octokit.Next.Tests/Octokit.Next.Tests.xproj | 22 +++++++++++++++ Octokit.Next.Tests/Properties/AssemblyInfo.cs | 19 +++++++++++++ Octokit.Next.Tests/project.json | 16 +++++++++++ Octokit.Next/Calculator.cs | 10 +++++++ Octokit.Next/Octokit.Next.xproj | 21 ++++++++++++++ Octokit.Next/Properties/AssemblyInfo.cs | 19 +++++++++++++ Octokit.Next/project.json | 11 ++++++++ 10 files changed, 174 insertions(+), 1 deletion(-) create mode 100644 Octokit.Core.sln create mode 100644 Octokit.Next.Tests/CalculatorTests.cs create mode 100644 Octokit.Next.Tests/Octokit.Next.Tests.xproj create mode 100644 Octokit.Next.Tests/Properties/AssemblyInfo.cs create mode 100644 Octokit.Next.Tests/project.json create mode 100644 Octokit.Next/Calculator.cs create mode 100644 Octokit.Next/Octokit.Next.xproj create mode 100644 Octokit.Next/Properties/AssemblyInfo.cs create mode 100644 Octokit.Next/project.json diff --git a/.gitignore b/.gitignore index 5d538ca26c..04f07c74a2 100644 --- a/.gitignore +++ b/.gitignore @@ -91,4 +91,7 @@ pingme.txt docs/_build # it's 2015, no need to keep this around when migrating projects -Backup/ \ No newline at end of file +Backup/ + +# .NET Core +project.lock.json \ No newline at end of file diff --git a/Octokit.Core.sln b/Octokit.Core.sln new file mode 100644 index 0000000000..ed6aab0995 --- /dev/null +++ b/Octokit.Core.sln @@ -0,0 +1,28 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 14 +VisualStudioVersion = 14.0.25420.1 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Octokit.Next", "Octokit.Next\Octokit.Next.xproj", "{4052AF53-4C1B-48D1-B873-BFD0351481C3}" +EndProject +Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Octokit.Next.Tests", "Octokit.Next.Tests\Octokit.Next.Tests.xproj", "{2740AF44-CB2E-4FD8-A221-248693978A0C}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {4052AF53-4C1B-48D1-B873-BFD0351481C3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4052AF53-4C1B-48D1-B873-BFD0351481C3}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4052AF53-4C1B-48D1-B873-BFD0351481C3}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4052AF53-4C1B-48D1-B873-BFD0351481C3}.Release|Any CPU.Build.0 = Release|Any CPU + {2740AF44-CB2E-4FD8-A221-248693978A0C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2740AF44-CB2E-4FD8-A221-248693978A0C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2740AF44-CB2E-4FD8-A221-248693978A0C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2740AF44-CB2E-4FD8-A221-248693978A0C}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/Octokit.Next.Tests/CalculatorTests.cs b/Octokit.Next.Tests/CalculatorTests.cs new file mode 100644 index 0000000000..7060e73723 --- /dev/null +++ b/Octokit.Next.Tests/CalculatorTests.cs @@ -0,0 +1,24 @@ +namespace Octokit.Next.Tests +{ + using Xunit; + + public class CalculatorTests + { + private readonly Calculator _sut; + + public CalculatorTests() + { + _sut = new Calculator(); + } + + [Theory] + [InlineData(1, 1, 2)] + [InlineData(1, 2, 3)] + [InlineData(2, 1, 3)] + [InlineData(-1, 1, 0)] + public void AddingTwoIntegers_ShouldReturnExpectedResult(int x, int y, int expected) + { + Assert.Equal(expected, _sut.Add(x, y)); + } + } +} diff --git a/Octokit.Next.Tests/Octokit.Next.Tests.xproj b/Octokit.Next.Tests/Octokit.Next.Tests.xproj new file mode 100644 index 0000000000..17d797e1c4 --- /dev/null +++ b/Octokit.Next.Tests/Octokit.Next.Tests.xproj @@ -0,0 +1,22 @@ + + + + 14.0 + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) + + + + 2740af44-cb2e-4fd8-a221-248693978a0c + Octokit.Next.Tests + .\obj + .\bin\ + v4.5 + + + 2.0 + + + + + + \ No newline at end of file diff --git a/Octokit.Next.Tests/Properties/AssemblyInfo.cs b/Octokit.Next.Tests/Properties/AssemblyInfo.cs new file mode 100644 index 0000000000..cc74232ec0 --- /dev/null +++ b/Octokit.Next.Tests/Properties/AssemblyInfo.cs @@ -0,0 +1,19 @@ +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: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Octokit.Next.Tests")] +[assembly: AssemblyTrademark("")] + +// 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("2740af44-cb2e-4fd8-a221-248693978a0c")] diff --git a/Octokit.Next.Tests/project.json b/Octokit.Next.Tests/project.json new file mode 100644 index 0000000000..ca49aeeff0 --- /dev/null +++ b/Octokit.Next.Tests/project.json @@ -0,0 +1,16 @@ +{ + "version": "1.0.0-*", + "testRunner": "xunit", + "dependencies": { + "Microsoft.NETCore.App": { + "type": "platform", + "version": "1.0.0" + }, + "Octokit.Next": "*", + "dotnet-test-xunit": "2.2.0-preview2-build1029", + "xunit": "2.2.0-beta2-build3300" + }, + "frameworks": { + "netcoreapp1.0": {} + } +} diff --git a/Octokit.Next/Calculator.cs b/Octokit.Next/Calculator.cs new file mode 100644 index 0000000000..588dd52355 --- /dev/null +++ b/Octokit.Next/Calculator.cs @@ -0,0 +1,10 @@ +namespace Octokit.Next +{ + public class Calculator + { + public int Add(int x, int y) + { + return x + y; + } + } +} diff --git a/Octokit.Next/Octokit.Next.xproj b/Octokit.Next/Octokit.Next.xproj new file mode 100644 index 0000000000..4f649fe3e8 --- /dev/null +++ b/Octokit.Next/Octokit.Next.xproj @@ -0,0 +1,21 @@ + + + + 14.0 + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) + + + + + 4052af53-4c1b-48d1-b873-bfd0351481c3 + Octokit.Next + .\obj + .\bin\ + v4.5 + + + + 2.0 + + + diff --git a/Octokit.Next/Properties/AssemblyInfo.cs b/Octokit.Next/Properties/AssemblyInfo.cs new file mode 100644 index 0000000000..22c1c95109 --- /dev/null +++ b/Octokit.Next/Properties/AssemblyInfo.cs @@ -0,0 +1,19 @@ +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: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Octokit.Next")] +[assembly: AssemblyTrademark("")] + +// 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("4052af53-4c1b-48d1-b873-bfd0351481c3")] diff --git a/Octokit.Next/project.json b/Octokit.Next/project.json new file mode 100644 index 0000000000..ae9aa1c119 --- /dev/null +++ b/Octokit.Next/project.json @@ -0,0 +1,11 @@ +{ + "version": "1.0.0-*", + + "dependencies": { + "NETStandard.Library": "1.6.0" + }, + + "frameworks": { + "netstandard1.1": {} + } +} From 091f9bdb814e633909e279f01aa6b7cc2f4332be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Derriey?= Date: Mon, 12 Sep 2016 20:07:05 +1000 Subject: [PATCH 02/14] update FAKE to get dotnet CLI support --- build.cmd | 2 +- build.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.cmd b/build.cmd index dfefcfd4a7..789b8463e7 100644 --- a/build.cmd +++ b/build.cmd @@ -1,7 +1,7 @@ @echo off "tools\nuget\nuget.exe" "install" "xunit.runner.console" "-OutputDirectory" "tools" "-ExcludeVersion" "-version" "2.1.0" -verbosity quiet -"tools\nuget\nuget.exe" "install" "FAKE.Core" "-OutputDirectory" "tools" "-ExcludeVersion" "-version" "4.28.0" -verbosity quiet +"tools\nuget\nuget.exe" "install" "FAKE.Core" "-OutputDirectory" "tools" "-ExcludeVersion" "-version" "4.39.1" -verbosity quiet "tools\nuget\nuget.exe" "install" "SourceLink.Fake" "-OutputDirectory" "tools" "-ExcludeVersion" "-version" "1.1.0" -verbosity quiet "tools\nuget\nuget.exe" "install" "Octokit.CodeFormatter" "-OutputDirectory" "tools" "-ExcludeVersion" "-version" "1.0.0-preview" -Pre -verbosity quiet "tools\nuget\nuget.exe" "install" "FSharp.Data" "-OutputDirectory" "tools" "-ExcludeVersion" "-version" "2.3.2" -verbosity quiet diff --git a/build.sh b/build.sh index 9468c1689e..f4f849df23 100755 --- a/build.sh +++ b/build.sh @@ -4,7 +4,7 @@ then # use .Net "./tools/nuget/nuget.exe" "install" "xunit.runner.console" "-OutputDirectory" "tools" "-ExcludeVersion" "-version" "2.0.0" -verbosity quiet -"./tools/nuget/nuget.exe" "install" "FAKE.Core" "-OutputDirectory" "tools" "-ExcludeVersion" "-version" "4.22.2" -verbosity quiet +"./tools/nuget/nuget.exe" "install" "FAKE.Core" "-OutputDirectory" "tools" "-ExcludeVersion" "-version" "4.39.1" -verbosity quiet "./tools/nuget/nuget.exe" "install" "SourceLink.Fake" "-OutputDirectory" "tools" "-ExcludeVersion" "-version" "1.1.0" -verbosity quiet "./tools/nuget/nuget.exe" "install" "Octokit.CodeFormatter" "-OutputDirectory" "tools" "-ExcludeVersion" "-version" "1.0.0-preview" -Pre -verbosity quiet "./tools/nuget/nuget.exe" "install" "FSharp.Data" "-OutputDirectory" "tools" "-ExcludeVersion" "-version" "2.3.2" -verbosity quiet @@ -12,7 +12,7 @@ packages/FAKE/tools/FAKE.exe $@ --fsiargs -d:MONO build.fsx else # use mono mono "./tools/nuget/NuGet.exe" "install" "xunit.runner.console" "-OutputDirectory" "tools" "-ExcludeVersion" "-version" "2.0.0" -verbosity quiet -mono "./tools/nuget/NuGet.exe" "install" "FAKE.Core" "-OutputDirectory" "tools" "-ExcludeVersion" "-version" "4.22.2" -verbosity quiet +mono "./tools/nuget/NuGet.exe" "install" "FAKE.Core" "-OutputDirectory" "tools" "-ExcludeVersion" "-version" "4.39.1" -verbosity quiet mono "./tools/nuget/NuGet.exe" "install" "SourceLink.Fake" "-OutputDirectory" "tools" "-ExcludeVersion" "-version" "1.1.0" -verbosity quiet mono "./tools/nuget/NuGet.exe" "install" "Octokit.CodeFormatter" "-OutputDirectory" "tools" "-ExcludeVersion" "-version" "1.0.0-preview" -Pre -verbosity quiet mono "./tools/nuget/NuGet.exe" "install" "FSharp.Data" "-OutputDirectory" "tools" "-ExcludeVersion" "-version" "2.3.2" -verbosity quiet From 3eb272900f7cc566262856ba34c7089865f902fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Derriey?= Date: Mon, 12 Sep 2016 21:03:57 +1000 Subject: [PATCH 03/14] add .NET Core targets in FAKE build script --- build.fsx | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/build.fsx b/build.fsx index 7a755e5ec7..3a9a5067d5 100644 --- a/build.fsx +++ b/build.fsx @@ -111,8 +111,28 @@ Target "BuildMono" (fun _ -> // xbuild does not support msbuild tools version 14.0 and that is the reason // for using the xbuild command directly instead of using msbuild Exec "xbuild" "./Octokit-Mono.sln /t:Build /tv:12.0 /v:m /p:RestorePackages='False' /p:Configuration='Release' /logger:Fake.MsBuildLogger+ErrorLogger,'../octokit.net/tools/FAKE.Core/tools/FakeLib.dll'" +) + +Target "RestoreDotNetCore" (fun _ -> + [ "./Octokit.Next" + "./Octokit.Next.Tests" ] + |> Seq.iter (fun d -> + Fake.DotNetCli.Restore (fun p -> + { p with + WorkingDir = d }) + ) +) +Target "BuildDotNetCore" (fun _ -> + !! "./**/project.json" + |> Fake.DotNetCli.Build id ) + +Target "UnitTestsDotNetCore" (fun _ -> + !! "./Octokit.Next.Tests" + |> Fake.DotNetCli.Test id +) + Target "ConventionTests" (fun _ -> !! (sprintf "./Octokit.Tests.Conventions/bin/%s/**/Octokit.Tests.Conventions.dll" buildMode) |> xUnit2 (fun p -> @@ -289,6 +309,10 @@ Target "CreatePackages" DoNothing ==> "CheckProjects" ==> "BuildMono" +"RestoreDotNetCore" + ==> "BuildDotNetCore" + ==> "UnitTestsDotNetCore" + "UnitTests" ==> "Default" From 341acd2164259a8121acd1a0f54d3d254142b8f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Derriey?= Date: Mon, 12 Sep 2016 21:04:17 +1000 Subject: [PATCH 04/14] first try at modifying the AppVeyor and Travis files --- .travis.yml | 22 ++++++++++++---------- appveyor.yml | 5 +---- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1244d3ebeb..0131d10ea1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,13 +2,15 @@ language: csharp mono: - 4.2.3 -sudo: false # use the new container-based Travis infrastructure -os: - - osx - - linux -install: - - nuget restore Octokit-Mono.sln -script: - - mono tools/nuget/NuGet.exe restore Octokit-Mono.sln - - ./build.sh BuildMono - - ./build.sh +matrix: + include: + - os: linux + dist: trusty + sudo: false + dotnet: 1.0.0-preview2-003121 + - os: osx + osx_image: xcode7.2 + dotnet: 1.0.0-preview2-003121 + +script: + - ./build.sh UnitTestsDotNetCore \ No newline at end of file diff --git a/appveyor.yml b/appveyor.yml index b9395c2624..1bf2b8979a 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,10 +1,7 @@ init: - git config --global core.autocrlf input build_script: - - cmd: build.cmd BuildApp - - cmd: build.cmd UnitTests - - cmd: build.cmd ConventionTests - - cmd: build.cmd CreatePackages + - cmd: build.cmd UnitTestsDotNetCore test: off nuget: account_feed: true From 85f8a4cf86e3567138a521209cc682c929ce9fca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Derriey?= Date: Mon, 12 Sep 2016 21:14:27 +1000 Subject: [PATCH 05/14] try something else for Travis based on https://github.com/enricosada/fsharp-dotnet-cli-samples/blob/rel/1.0.0-preview2/.travis.yml --- .travis.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0131d10ea1..2391d74054 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,16 +1,17 @@ language: csharp -mono: - - 4.2.3 matrix: include: - os: linux dist: trusty - sudo: false + sudo: required + mono: none dotnet: 1.0.0-preview2-003121 - os: osx osx_image: xcode7.2 + mono: none dotnet: 1.0.0-preview2-003121 script: + - dotnet --info - ./build.sh UnitTestsDotNetCore \ No newline at end of file From 297fe2fc3110b9a66fc7886688f1d0db9c1f1a89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Derriey?= Date: Mon, 12 Sep 2016 21:18:47 +1000 Subject: [PATCH 06/14] add mono. of course we need it to install NuGet dependencies --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2391d74054..1b23c86b7a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,11 +5,11 @@ matrix: - os: linux dist: trusty sudo: required - mono: none + mono: latest dotnet: 1.0.0-preview2-003121 - os: osx osx_image: xcode7.2 - mono: none + mono: latest dotnet: 1.0.0-preview2-003121 script: From eb57ebd540834d6f65b333ab130955fd92e99704 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Derriey?= Date: Wed, 14 Sep 2016 19:28:17 +1000 Subject: [PATCH 07/14] bring back original build tasks --- .travis.yml | 6 ++++++ appveyor.yml | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/.travis.yml b/.travis.yml index 1b23c86b7a..e80aa2ca47 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,12 @@ matrix: mono: latest dotnet: 1.0.0-preview2-003121 +install: + - nuget restore Octokit-Mono.sln + script: + - mono tools/nuget/NuGet.exe restore Octokit-Mono.sln + - ./build.sh BuildMono + - ./build.sh - dotnet --info - ./build.sh UnitTestsDotNetCore \ No newline at end of file diff --git a/appveyor.yml b/appveyor.yml index 1bf2b8979a..9b4320e34d 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,6 +1,10 @@ init: - git config --global core.autocrlf input build_script: + - cmd: build.cmd BuildApp + - cmd: build.cmd UnitTests + - cmd: build.cmd ConventionTests + - cmd: build.cmd CreatePackages - cmd: build.cmd UnitTestsDotNetCore test: off nuget: From b3c1c80585b297875aa5903aa157b9169e866349 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Derriey?= Date: Wed, 14 Sep 2016 21:08:49 +1000 Subject: [PATCH 08/14] use mono 4.2.3 as latest successful builds show this version was used --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index e80aa2ca47..03a983b8e0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,11 +5,11 @@ matrix: - os: linux dist: trusty sudo: required - mono: latest + mono: 4.2.3 dotnet: 1.0.0-preview2-003121 - os: osx osx_image: xcode7.2 - mono: latest + mono: 4.2.3 dotnet: 1.0.0-preview2-003121 install: From 9c95477db0807e435f652c32f1aa690536c3926d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Derriey?= Date: Thu, 15 Sep 2016 09:44:36 +1000 Subject: [PATCH 09/14] remove specific `osx_image` trying to get the build not to hang on Mac OS --- .travis.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 03a983b8e0..060f5da53e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,7 +8,6 @@ matrix: mono: 4.2.3 dotnet: 1.0.0-preview2-003121 - os: osx - osx_image: xcode7.2 mono: 4.2.3 dotnet: 1.0.0-preview2-003121 @@ -20,4 +19,4 @@ script: - ./build.sh BuildMono - ./build.sh - dotnet --info - - ./build.sh UnitTestsDotNetCore \ No newline at end of file + - ./build.sh UnitTestsDotNetCore From 893c1844dff2828cb3b403cd6ce988cd7ac2963a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Derriey?= Date: Thu, 15 Sep 2016 11:23:28 +1000 Subject: [PATCH 10/14] add other specific `osx_image` The default Mac OS image is not compatible with .NET Core see https://travis-ci.org/octokit/octokit.net/jobs/160036868 --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 060f5da53e..d648a2174e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,7 @@ matrix: mono: 4.2.3 dotnet: 1.0.0-preview2-003121 - os: osx + osx_image: xcode8 mono: 4.2.3 dotnet: 1.0.0-preview2-003121 From 7678ba8b52d59d19d61735501477b84a017df7f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Derriey?= Date: Thu, 15 Sep 2016 13:54:13 +1000 Subject: [PATCH 11/14] try to work around Homebrew refusing to link OpenSSL Disclaimer: I have no idea what I'm doing. See https://github.com/dotnet/core/issues/173 --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index d648a2174e..4308ec60fc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,9 @@ matrix: mono: 4.2.3 dotnet: 1.0.0-preview2-003121 +before_install: + - if test "$TRAVIS_OS_NAME" == "osx"; then ln -s /usr/local/Cellar/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/; ln -s /usr/local/Cellar/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/; fi + install: - nuget restore Octokit-Mono.sln From 26b15dd2def142f132bdecdd3e98750806c5d49c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Derriey?= Date: Thu, 15 Sep 2016 15:56:48 +1000 Subject: [PATCH 12/14] and again I try I don't know much more about it than the previous commit --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 4308ec60fc..152adc9f1a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,7 +13,7 @@ matrix: dotnet: 1.0.0-preview2-003121 before_install: - - if test "$TRAVIS_OS_NAME" == "osx"; then ln -s /usr/local/Cellar/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/; ln -s /usr/local/Cellar/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/; fi + - if test "$TRAVIS_OS_NAME" == "osx"; then ln -s /usr/local/Cellar/openssl/1.0.2h/lib/libcrypto.1.0.0.dylib /usr/local/lib/; ln -s /usr/local/Cellar/openssl/1.0.2h/lib/libssl.1.0.0.dylib /usr/local/lib/; fi install: - nuget restore Octokit-Mono.sln From 2de3c7337de80c463ec9220805b3ceb8ea504fdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Derriey?= Date: Thu, 15 Sep 2016 18:19:56 +1000 Subject: [PATCH 13/14] yet another try - probably not the last --- .travis.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 152adc9f1a..a38b8d671a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,18 +2,13 @@ language: csharp matrix: include: - - os: linux - dist: trusty - sudo: required - mono: 4.2.3 - dotnet: 1.0.0-preview2-003121 - os: osx osx_image: xcode8 mono: 4.2.3 dotnet: 1.0.0-preview2-003121 -before_install: - - if test "$TRAVIS_OS_NAME" == "osx"; then ln -s /usr/local/Cellar/openssl/1.0.2h/lib/libcrypto.1.0.0.dylib /usr/local/lib/; ln -s /usr/local/Cellar/openssl/1.0.2h/lib/libssl.1.0.0.dylib /usr/local/lib/; fi +before_install: + - ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/; ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/; install: - nuget restore Octokit-Mono.sln From 766d3e21d39024a20253e130abc436d82a6f89a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Derriey?= Date: Thu, 15 Sep 2016 18:37:01 +1000 Subject: [PATCH 14/14] brincg back linux since last build passed --- .travis.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index a38b8d671a..811de032f1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,13 +2,18 @@ language: csharp matrix: include: + - os: linux + dist: trusty + sudo: required + mono: 4.2.3 + dotnet: 1.0.0-preview2-003121 - os: osx osx_image: xcode8 mono: 4.2.3 dotnet: 1.0.0-preview2-003121 before_install: - - ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/; ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/; + - if test "$TRAVIS_OS_NAME" == "osx"; then ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/; ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/; fi install: - nuget restore Octokit-Mono.sln