-
Notifications
You must be signed in to change notification settings - Fork 573
/
.travis.yml
23 lines (23 loc) · 1.17 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
language: csharp
solution: TensorFlowSharp.sln
script:
- tsh_version=1.13.0
- wget "https://www.nuget.org/api/v2/package/TensorFlowSharp/$tsh_version"
- mkdir native
- tar xzvf $tsh_version runtimes/linux/native
- cp runtimes/linux/native/* native
- tar xzvf $tsh_version runtimes/win7-x64/native
- cp runtimes/win7-x64/native/* native
- tar xzvf $tsh_version runtimes/osx/native
- cp runtimes/osx/native/* native
- msbuild /t:Restore $TRAVIS_BUILD_DIR/TensorFlowSharp.sln
- cd $TRAVIS_BUILD_DIR/
- msbuild /p:Configuration=Release TensorFlowSharp.sln
- cp -R $TRAVIS_BUILD_DIR/native/*.dylib $TRAVIS_BUILD_DIR/tests/TensorFlowSharp.Tests/bin/Release/
- cp -R $TRAVIS_BUILD_DIR/native/*.dylib $TRAVIS_BUILD_DIR/tests/TensorFlowSharp.Tests.CSharp/bin/Release/
- cd $TRAVIS_BUILD_DIR/packages/xunit.runner.console.2.2.0/tools
- cp "$TRAVIS_BUILD_DIR/tests/TensorFlowSharp.Tests/obj/Release/FSharp.Core.dll" .
- mono --arch=64 xunit.console.exe "$TRAVIS_BUILD_DIR/tests/TensorFlowSharp.Tests/bin/Release/TensorFlowSharp.Tests.dll" "$TRAVIS_BUILD_DIR/tests/TensorFlowSharp.Tests.CSharp/bin/Release/TensorFlowSharp.Tests.CSharp.dll"
mono: "5.10.0"
dotnet: "2.1.4"
os: "osx"