Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/Azure/autorest
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Schulte committed May 25, 2016
2 parents 083672e + de936fb commit 4652810
Show file tree
Hide file tree
Showing 135 changed files with 872 additions and 1,300 deletions.
8 changes: 3 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,6 @@ Thumbs.db
AutoRest/Generators/Ruby/*Tests/Gemfile.lock
AutoRest/Generators/Ruby/*/RspecTests/Generated/*

#dnx installation
dnx-clr-win-x86*/
dnx-coreclr-win-x86*/
*.lock.json
/dnx
#netcore
/NetCore
*.lock.json
20 changes: 7 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
language: csharp
sudo: false
mono:
- beta
sudo: required
dist: trusty
addons:
apt:
sources:
Expand All @@ -16,14 +15,7 @@ addons:
# packages for python
- python3.5
install:
# Install libunwind required for DNX
- wget http://download.savannah.gnu.org/releases/libunwind/libunwind-1.1.tar.gz
- tar xzvf libunwind-1.1.tar.gz
- libunwind-1.1/configure --prefix=$HOME/.local
- make && make install
- export LD_LIBRARY_PATH=$HOME/.local/lib/:$LD_LIBRARY_PATH
# Install npm
- curl -sSL https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.sh | sh && source ~/.dnx/dnvm/dnvm.sh && dnvm upgrade
- rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install 4
- npm install -g npm@'>=1.4.3'
- npm install
Expand All @@ -38,10 +30,12 @@ install:
- echo y | ./android/android-sdk-linux/tools/android update sdk --all --filter platform-tools,android-23,build-tools-23.0.1 --no-ui --force
- echo y | ./android/android-sdk-linux/tools/android update sdk --all --filter extra-android-support,extra-android-m2repository,extra-google-m2repository --no-ui --force
- export ANDROID_HOME=`pwd`/android/android-sdk-linux
# Install NetCore RC2
- sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet/ trusty main" > /etc/apt/sources.list.d/dotnetdev.list'
- sudo apt-key adv --keyserver apt-mo.trafficmanager.net --recv-keys 417A0893
- sudo apt-get update
- sudo apt-get install dotnet-dev-1.0.0-preview1-002702 -y
script:
- dnvm install 1.0.0-rc1-final -r mono
- dnvm install 1.0.0-rc1-final -r coreclr
- dnvm use 1.0.0-rc1-final -r coreclr -persistent
- gulp
after_script:
- echo "========== Server log: ============"
Expand Down
186 changes: 154 additions & 32 deletions AutoRest.sln

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions AutoRest/AutoRest.Core/Logging/CodeGenerationException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Microsoft.Rest.Generator.Logging
/// <summary>
/// Code generation aggregate exception.
/// </summary>
#if !DNXCORE50
#if !PORTABLE
[Serializable]
#endif
public class CodeGenerationException : AggregateException
Expand Down Expand Up @@ -38,7 +38,7 @@ public CodeGenerationException(string message, Exception innerException) : base(
{
}

#if !DNXCORE50
#if !PORTABLE
/// <summary>
/// Instantiates a new instance of the CodeGenerationException class.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\..\..\..\packages\xunit.runner.msbuild.2.1.0\build\portable-net45+win8+wp8+wpa81\xunit.runner.msbuild.props" Condition="Exists('..\..\..\..\packages\xunit.runner.msbuild.2.1.0\build\portable-net45+win8+wp8+wpa81\xunit.runner.msbuild.props')" />
<Import Project="..\..\..\..\packages\xunit.runner.visualstudio.2.1.0\build\net20\xunit.runner.visualstudio.props" Condition="Exists('..\..\..\..\packages\xunit.runner.visualstudio.2.1.0\build\net20\xunit.runner.visualstudio.props')" />
<Import Project="..\..\..\..\packages\xunit.core.2.1.0\build\portable-net45+win8+wp8+wpa81\xunit.core.props" Condition="Exists('..\..\..\..\packages\xunit.core.2.1.0\build\portable-net45+win8+wp8+wpa81\xunit.core.props')" />
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
Expand All @@ -12,10 +13,8 @@
<RootNamespace>Microsoft.Rest.Generator.AzureResourceSchema.Tests</RootNamespace>
<RootNamespace>AutoRest.Generator.AzureResourceSchema.Tests</RootNamespace>
<AssemblyName>AutoRest.Generator.AzureResourceSchema.Tests</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public void AzureCustomBaseUriTests()
using (var client = new AutoRestParameterizedHostTestClient(new TokenCredentials(Guid.NewGuid().ToString())))
{
// small modification to the "host" portion to include the port and the '.'
client.Host = string.Format(CultureInfo.InvariantCulture, "{0}.:{1}", client.Host, Fixture.Port);
client.Host = string.Format(CultureInfo.InvariantCulture, "{0}:{1}", client.Host, Fixture.Port);
Assert.Equal(HttpStatusCode.OK,
client.Paths.GetEmptyWithHttpMessagesAsync("local").Result.Response.StatusCode);
}
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0.25123" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0.25123</VisualStudioVersion>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
</PropertyGroup>
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.Props" Condition="'$(VSToolsPath)' != ''" />
<PropertyGroup Label="Globals">
<ProjectGuid>43dfef27-2fd7-4827-a669-dfd2dd1cbbcc</ProjectGuid>
<RootNamespace>Azure.CSharp.Tests</RootNamespace>
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">.\obj</BaseIntermediateOutputPath>
<OutputPath Condition="'$(OutputPath)'=='' ">.\bin\</OutputPath>
</PropertyGroup>
<PropertyGroup>
<SchemaVersion>2.0</SchemaVersion>
</PropertyGroup>
<ItemGroup>
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
</ItemGroup>
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.targets" Condition="'$(VSToolsPath)' != ''" />
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ namespace Fixtures.Azure.AcceptanceTestsAzureBodyDuration.Models
using System;
using System.Net.Http;
using System.Runtime.Serialization;
#if !PORTABLE && !DNXCORE50
#if !PORTABLE
using System.Security.Permissions;
#endif

/// <summary>
/// Exception thrown for an invalid response with Error information.
/// </summary>
#if !PORTABLE && !DNXCORE50
#if !PORTABLE
[Serializable]
#endif
public class ErrorException : RestException
Expand Down Expand Up @@ -65,7 +65,7 @@ public ErrorException(string message, Exception innerException)
{
}

#if !PORTABLE && !DNXCORE50
#if !PORTABLE
/// <summary>
/// Initializes a new instance of the ErrorException class.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models
using System;
using System.Net.Http;
using System.Runtime.Serialization;
#if !PORTABLE && !DNXCORE50
#if !PORTABLE
using System.Security.Permissions;
#endif

/// <summary>
/// Exception thrown for an invalid response with Error information.
/// </summary>
#if !PORTABLE && !DNXCORE50
#if !PORTABLE
[Serializable]
#endif
public class ErrorException : RestException
Expand Down Expand Up @@ -65,7 +65,7 @@ public ErrorException(string message, Exception innerException)
{
}

#if !PORTABLE && !DNXCORE50
#if !PORTABLE
/// <summary>
/// Initializes a new instance of the ErrorException class.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ namespace Fixtures.Azure.AcceptanceTestsAzureParameterGrouping.Models
using System;
using System.Net.Http;
using System.Runtime.Serialization;
#if !PORTABLE && !DNXCORE50
#if !PORTABLE
using System.Security.Permissions;
#endif

/// <summary>
/// Exception thrown for an invalid response with Error information.
/// </summary>
#if !PORTABLE && !DNXCORE50
#if !PORTABLE
[Serializable]
#endif
public class ErrorException : RestException
Expand Down Expand Up @@ -65,7 +65,7 @@ public ErrorException(string message, Exception innerException)
{
}

#if !PORTABLE && !DNXCORE50
#if !PORTABLE
/// <summary>
/// Initializes a new instance of the ErrorException class.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ namespace Fixtures.Azure.AcceptanceTestsAzureReport.Models
using System;
using System.Net.Http;
using System.Runtime.Serialization;
#if !PORTABLE && !DNXCORE50
#if !PORTABLE
using System.Security.Permissions;
#endif

/// <summary>
/// Exception thrown for an invalid response with Error information.
/// </summary>
#if !PORTABLE && !DNXCORE50
#if !PORTABLE
[Serializable]
#endif
public class ErrorException : RestException
Expand Down Expand Up @@ -65,7 +65,7 @@ public ErrorException(string message, Exception innerException)
{
}

#if !PORTABLE && !DNXCORE50
#if !PORTABLE
/// <summary>
/// Initializes a new instance of the ErrorException class.
/// </summary>
Expand Down
Loading

0 comments on commit 4652810

Please sign in to comment.