-
Notifications
You must be signed in to change notification settings - Fork 118
/
.travis.yml
74 lines (74 loc) · 3.3 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
git:
depth: 3
matrix:
include:
- name: "Linux FBX-Conv build"
language: cpp
os: linux
before_install:
- pip install --user awscli
- wget -O premake5.tar.gz https://github.com/premake/premake-core/releases/download/v5.0.0-alpha14/premake-5.0.0-alpha14-linux.tar.gz
- tar -xf premake5.tar.gz
- export PATH=$PATH:$PWD
- wget http://download.autodesk.com/us/fbx/2019/2019.0/fbx20190_fbxsdk_linux.tar.gz
- tar -xf fbx20190_fbxsdk_linux.tar.gz
- chmod +x fbx20190_fbxsdk_linux
- mkdir fbx-sdk-linux
- yes yes | ./fbx20190_fbxsdk_linux fbx-sdk-linux
- export FBX_SDK_ROOT=$PWD/fbx-sdk-linux
- export LD_LIBRARY_PATH=$FBX_SDK_ROOT/lib/gcc4/x64/release
- ./generate_makefile
- cd build/gmake/
install: true
script: make config=release
after_success:
- cp $LD_LIBRARY_PATH/libfbxsdk.so bin/Release/
- zip -j fbx-conv-linux.zip bin/Release/libfbxsdk.so bin/Release/fbx-conv
- aws s3 cp fbx-conv-linux.zip s3://fbx-conv/linux/
- name: "OSX FBX-Conv build"
language: cpp
os: osx
before_install:
- pip3 install awscli
- wget -O premake5.tar.gz https://github.com/premake/premake-core/releases/download/v5.0.0-alpha14/premake-5.0.0-alpha14-macosx.tar.gz
- tar -xf premake5.tar.gz
- export PATH=$PATH:$PWD
- wget http://download.autodesk.com/us/fbx/2019/2019.0/fbx20190_fbxsdk_clang_mac.pkg.tgz
- tar -xf fbx20190_fbxsdk_clang_mac.pkg.tgz
- sudo installer -pkg fbx20190_fbxsdk_clang_macos.pkg -target /
- sudo mv "/Applications/Autodesk/FBX SDK/" /Applications/Autodesk/SDK/
- export FBX_SDK_ROOT=/Applications/Autodesk/SDK/2019.0/
- export LD_LIBRARY_PATH=/Applications/Autodesk/SDK/2019.0/lib/clang/release
- ./generate_xcode
- cd build/xcode4/
install: true
script: xcodebuild -configuration Release
after_success:
- cp $LD_LIBRARY_PATH/libfbxsdk.dylib bin/Release/
- zip -j fbx-conv-mac.zip bin/Release/libfbxsdk.dylib bin/Release/fbx-conv
- aws s3 cp fbx-conv-mac.zip s3://fbx-conv/mac/
- name: "Windows FBX-Conv build"
language: cpp
os: windows
env:
- MSBUILD_PATH="c:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin"
before_install:
- choco install python3 --version 3.7.4 --params "/InstallDir:C:\\Python"
- export PATH="/c/Python:/c/Python/Scripts:$PATH"
- python -m pip install --upgrade pip wheel
- pip3 install awscli
- aws --version
- choco install 7zip
- wget -O premake5.zip https://github.com/premake/premake-core/releases/download/v5.0.0-alpha14/premake-5.0.0-alpha14-windows.zip
- unzip premake5.zip
- export PATH=$PATH:$PWD
- wget http://download.autodesk.com/us/fbx/2019/2019.0/fbx20190_fbxsdk_vs2015_win.exe
- 7z x -ofbx-sdk-windows/ fbx20190_fbxsdk_vs2015_win.exe
- export FBX_SDK_ROOT=$PWD/fbx-sdk-windows/
- export PATH=$MSBUILD_PATH:$PATH
- generate_vs2015.bat
- cd build/vs2015/
install: true
script: MSBuild.exe fbx-conv.sln /property:Configuration=Release
after_success:
- aws s3 cp bin/Release/fbx-conv.exe s3://fbx-conv/win/