Skip to content

Commit 53c2ddd

Browse files
committed
Adding a basic build file for travis ci. We wont run any tests here since all of them are integration tests.
1 parent ae8fcba commit 53c2ddd

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

.travis.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
language: csharp
2+
solution: src/SoundFingerprinting.SQL.sln
3+
install:
4+
- nuget restore src/SoundFingerprinting.SQL.sln
5+
- nuget install NUnit.Runners -Version 3.5.0 -OutputDirectory build/testrunner
6+
script:
7+
- xbuild /p:Configuration=Release src/SoundFingerprinting.SQL.sln
8+
notifications:
9+
webhooks:
10+
urls:
11+
- https://webhooks.gitter.im/e/846dee77235fe9abbb02
12+
on_success: change # options: [always|never|change] default: always
13+
on_failure: always # options: [always|never|change] default: always
14+
on_start: never # options: [always|never|change] default: always
15+

src/SoundFingerprinting.SQL.Tests/SoundFingerprinting.SQL.Tests.csproj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,10 @@
183183
</Choose>
184184
<Import Project="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" />
185185
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
186-
<Import Project="$(SolutionDir)\.nuget\nuget.targets" />
186+
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" />
187187
<PropertyGroup>
188-
<PreBuildEvent>copy "$(ProjectDir)TestEnvironment\*.*" "$(TargetDir)"</PreBuildEvent>
188+
<PreBuildEvent Condition=" '$(OS)' != 'Unix' ">copy "$(ProjectDir)\TestEnvironment\*.*" "$(TargetDir)"</PreBuildEvent>
189+
<PreBuildEvent Condition=" '$(OS)' == 'Unix' ">cp $(ProjectDir)\TestEnvironment/*.* $(TargetDir)</PreBuildEvent>
189190
</PropertyGroup>
190191
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
191192
Other similar extension points exist, see Microsoft.Common.targets.
@@ -194,4 +195,4 @@
194195
<Target Name="AfterBuild">
195196
</Target>
196197
-->
197-
</Project>
198+
</Project>

0 commit comments

Comments
 (0)