Skip to content

Commit e93006b

Browse files
committed
Added Travis CI release configuration and disabled views from building in linux
1 parent 47841c3 commit e93006b

24 files changed

Lines changed: 377 additions & 9 deletions

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ install:
55
- nuget install NUnit.Runners -Version 2.6.4 -OutputDirectory testrunner
66
script:
77
- sudo apt-get install libmono-windowsbase4.0-cil
8-
- xbuild /p:Configuration=Release /p:VbcToolExe=vbnc.exe QuantConnect.Lean.sln
9-
- mono ./testrunner/NUnit.Runners.2.6.4/tools/nunit-console.exe ./Tests/bin/Release/QuantConnect.Tests.dll --exclude:TravisExclude
8+
- xbuild /p:Configuration=TravisCI /p:VbcToolExe=vbnc.exe QuantConnect.Lean.sln
9+
- mono ./testrunner/NUnit.Runners.2.6.4/tools/nunit-console.exe ./Tests/bin/TravisCI/QuantConnect.Tests.dll --exclude:TravisExclude
1010
after_success:
1111
- coveralls

Algorithm.CSharp/QuantConnect.Algorithm.CSharp.csproj

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,16 @@
3030
<ErrorReport>prompt</ErrorReport>
3131
<WarningLevel>4</WarningLevel>
3232
</PropertyGroup>
33+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'TravisCI|AnyCPU'">
34+
<OutputPath>bin\TravisCI\</OutputPath>
35+
<DefineConstants>TRACE</DefineConstants>
36+
<Optimize>true</Optimize>
37+
<DebugType>pdbonly</DebugType>
38+
<PlatformTarget>AnyCPU</PlatformTarget>
39+
<LangVersion>5</LangVersion>
40+
<ErrorReport>prompt</ErrorReport>
41+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
42+
</PropertyGroup>
3343
<ItemGroup>
3444
<Reference Include="Newtonsoft.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
3545
<SpecificVersion>False</SpecificVersion>

Algorithm.FSharp/QuantConnect.Algorithm.FSharp.fsproj

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,15 @@
7070
<PropertyGroup>
7171
<MinimumVisualStudioVersion Condition="'$(MinimumVisualStudioVersion)' == ''">11</MinimumVisualStudioVersion>
7272
</PropertyGroup>
73+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'TravisCI|AnyCPU' ">
74+
<DebugType>pdbonly</DebugType>
75+
<Optimize>true</Optimize>
76+
<Tailcalls>true</Tailcalls>
77+
<DefineConstants>TRACE</DefineConstants>
78+
<WarningLevel>3</WarningLevel>
79+
<DocumentationFile>bin\Release\QuantConnect.Algorithm.FSharp.XML</DocumentationFile>
80+
<OutputPath>bin\TravisCI\</OutputPath>
81+
</PropertyGroup>
7382
<Choose>
7483
<When Condition="'$(VisualStudioVersion)' == '11.0'">
7584
<PropertyGroup Condition="Exists('$(MSBuildExtensionsPath32)\..\Microsoft SDKs\F#\3.0\Framework\v4.0\Microsoft.FSharp.Targets')">

Algorithm.Java/QuantConnect.Algorithm.Java.csproj

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,16 @@
3030
<ErrorReport>prompt</ErrorReport>
3131
<WarningLevel>4</WarningLevel>
3232
</PropertyGroup>
33+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'TravisCI|AnyCPU'">
34+
<OutputPath>bin\TravisCI\</OutputPath>
35+
<DefineConstants>TRACE</DefineConstants>
36+
<Optimize>true</Optimize>
37+
<DebugType>pdbonly</DebugType>
38+
<PlatformTarget>AnyCPU</PlatformTarget>
39+
<LangVersion>5</LangVersion>
40+
<ErrorReport>prompt</ErrorReport>
41+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
42+
</PropertyGroup>
3343
<ItemGroup>
3444
<Reference Include="ICSharpCode.SharpZipLib">
3545
<HintPath>..\packages\IKVM-WithExes.7.3.4830.1\tools\ICSharpCode.SharpZipLib.dll</HintPath>

Algorithm.Python/QuantConnect.Algorithm.Python.csproj

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,16 @@
3030
<ErrorReport>prompt</ErrorReport>
3131
<WarningLevel>4</WarningLevel>
3232
</PropertyGroup>
33+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'TravisCI|AnyCPU'">
34+
<OutputPath>bin\TravisCI\</OutputPath>
35+
<DefineConstants>TRACE</DefineConstants>
36+
<Optimize>true</Optimize>
37+
<DebugType>pdbonly</DebugType>
38+
<PlatformTarget>AnyCPU</PlatformTarget>
39+
<LangVersion>5</LangVersion>
40+
<ErrorReport>prompt</ErrorReport>
41+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
42+
</PropertyGroup>
3343
<ItemGroup>
3444
<Reference Include="IronPython, Version=2.7.5.0, Culture=neutral, PublicKeyToken=7f709c5b713576e1, processorArchitecture=MSIL">
3545
<Private>True</Private>

Algorithm.VisualBasic/QuantConnect.Algorithm.VisualBasic.vbproj

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,16 @@
4242
<PropertyGroup>
4343
<OptionInfer>On</OptionInfer>
4444
</PropertyGroup>
45+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'TravisCI|AnyCPU'">
46+
<DefineTrace>true</DefineTrace>
47+
<OutputPath>bin\TravisCI\</OutputPath>
48+
<DocumentationFile>QuantConnect.Algorithm.VisualBasic.xml</DocumentationFile>
49+
<Optimize>true</Optimize>
50+
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
51+
<DebugType>pdbonly</DebugType>
52+
<PlatformTarget>AnyCPU</PlatformTarget>
53+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
54+
</PropertyGroup>
4555
<ItemGroup>
4656
<Reference Include="Newtonsoft.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
4757
<SpecificVersion>False</SpecificVersion>

Algorithm/QuantConnect.Algorithm.csproj

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,27 @@
5959
<CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
6060
<Prefer32Bit>false</Prefer32Bit>
6161
</PropertyGroup>
62+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'TravisCI|AnyCPU'">
63+
<OutputPath>bin\TravisCI\</OutputPath>
64+
<DefineConstants>TRACE</DefineConstants>
65+
<Optimize>true</Optimize>
66+
<DebugType>pdbonly</DebugType>
67+
<PlatformTarget>AnyCPU</PlatformTarget>
68+
<LangVersion>5</LangVersion>
69+
<ErrorReport>prompt</ErrorReport>
70+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
71+
</PropertyGroup>
72+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'TravisCI|x64'">
73+
<OutputPath>bin\x64\TravisCI\</OutputPath>
74+
<DefineConstants>TRACE</DefineConstants>
75+
<Optimize>true</Optimize>
76+
<DebugType>pdbonly</DebugType>
77+
<PlatformTarget>x64</PlatformTarget>
78+
<LangVersion>5</LangVersion>
79+
<ErrorReport>prompt</ErrorReport>
80+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
81+
<CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
82+
</PropertyGroup>
6283
<ItemGroup>
6384
<Reference Include="MathNet.Numerics, Version=3.7.0.0, Culture=neutral, processorArchitecture=MSIL">
6485
<SpecificVersion>False</SpecificVersion>

AlgorithmFactory/QuantConnect.AlgorithmFactory.csproj

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,16 @@
3131
<ErrorReport>prompt</ErrorReport>
3232
<WarningLevel>4</WarningLevel>
3333
</PropertyGroup>
34+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'TravisCI|AnyCPU'">
35+
<OutputPath>bin\TravisCI\</OutputPath>
36+
<DefineConstants>TRACE</DefineConstants>
37+
<Optimize>true</Optimize>
38+
<DebugType>pdbonly</DebugType>
39+
<PlatformTarget>AnyCPU</PlatformTarget>
40+
<LangVersion>5</LangVersion>
41+
<ErrorReport>prompt</ErrorReport>
42+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
43+
</PropertyGroup>
3444
<ItemGroup>
3545
<Reference Include="ImpromptuInterface">
3646
<HintPath>..\packages\ImpromptuInterface.6.2.2\lib\net40\ImpromptuInterface.dll</HintPath>

Api/QuantConnect.Api.csproj

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,28 @@
6262
<CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
6363
<Prefer32Bit>false</Prefer32Bit>
6464
</PropertyGroup>
65+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'TravisCI|AnyCPU'">
66+
<OutputPath>bin\TravisCI\</OutputPath>
67+
<DefineConstants>TRACE</DefineConstants>
68+
<Optimize>true</Optimize>
69+
<DebugType>pdbonly</DebugType>
70+
<PlatformTarget>AnyCPU</PlatformTarget>
71+
<LangVersion>5</LangVersion>
72+
<ErrorReport>prompt</ErrorReport>
73+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
74+
</PropertyGroup>
75+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'TravisCI|x64'">
76+
<OutputPath>bin\x64\TravisCI\</OutputPath>
77+
<DefineConstants>TRACE</DefineConstants>
78+
<Optimize>true</Optimize>
79+
<DebugType>pdbonly</DebugType>
80+
<PlatformTarget>x64</PlatformTarget>
81+
<LangVersion>5</LangVersion>
82+
<ErrorReport>prompt</ErrorReport>
83+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
84+
<CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets>
85+
<CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
86+
</PropertyGroup>
6587
<ItemGroup>
6688
<Reference Include="ICSharpCode.SharpZipLib, Version=0.85.4.369, Culture=neutral, PublicKeyToken=1b03e6acf1164f73, processorArchitecture=MSIL">
6789
<SpecificVersion>False</SpecificVersion>

Brokerages/QuantConnect.Brokerages.csproj

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,16 @@
3636
<PropertyGroup>
3737
<StartupObject />
3838
</PropertyGroup>
39+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'TravisCI|AnyCPU'">
40+
<OutputPath>bin\TravisCI\</OutputPath>
41+
<DefineConstants>TRACE</DefineConstants>
42+
<Optimize>true</Optimize>
43+
<DebugType>pdbonly</DebugType>
44+
<PlatformTarget>AnyCPU</PlatformTarget>
45+
<LangVersion>5</LangVersion>
46+
<ErrorReport>prompt</ErrorReport>
47+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
48+
</PropertyGroup>
3949
<ItemGroup>
4050
<Reference Include="IKVM.OpenJDK.Beans, Version=7.2.4630.5, Culture=neutral, PublicKeyToken=13235d27fcbfff58, processorArchitecture=MSIL">
4151
<SpecificVersion>False</SpecificVersion>

0 commit comments

Comments
 (0)