-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
97 lines (92 loc) · 3.26 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
language: cpp
dist: trusty
sudo: required
matrix:
include:
- os: osx
osx_image: xcode10.1
- os: linux
env: COMPILER_C=gcc-7 COMPILER_CC=g++-7
compiler:
- gcc
addons:
apt:
update: true
sources:
- sourceline: 'ppa:mhier/libboost-latest'
- ubuntu-toolchain-r-test
packages:
- g++-7
- cmake
- boost1.67
- os: linux
env: COMPILER_C=clang-7 COMPILER_CC=clang++-7
compiler:
- clang
addons:
apt:
update: true
sources:
- sourceline: 'ppa:mhier/libboost-latest'
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-7
packages:
- clang-7
- boost1.67
- cmake
before_script:
- if [[ $TRAVIS_OS_NAME == "osx" ]]; then
brew update;
fi
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then
sudo apt-get install;
sudo apt-get -qq update;
sudo apt-get -y install python3;
fi
install:
- if [[ $TRAVIS_OS_NAME == "osx" ]]; then
sudo wget http://download.autodesk.com/us/fbx/2019/2019.0/fbx20190_fbxsdk_clang_mac.pkg.tgz;
sudo tar -xf fbx20190_fbxsdk_clang_mac.pkg.tgz;
sudo installer -pkg fbx20190_fbxsdk_clang_macos.pkg -target /;
fi
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then
sudo wget -O fbx20190_fbxsdk_linux.tar.gz http://download.autodesk.com/us/fbx/2019/2019.0/fbx20190_fbxsdk_linux.tar.gz;
sudo tar -xf fbx20190_fbxsdk_linux.tar.gz;
sudo chmod ugo+x fbx20190_fbxsdk_linux;
sudo mkdir /home/travis/build/VladSerhiienko/FbxPipeline/FbxSdk;
yes yes | sudo ./fbx20190_fbxsdk_linux /home/travis/build/VladSerhiienko/FbxPipeline/FbxSdk;
fi
script:
- cmake --version;
rm -rf build;
rm -rf build_appleclang_unix_makefiles;
rm -rf build_appleclang_xcode;
rm -rf build_gnu_unix_makefiles;
rm -rf build_clang_unix_makefiles;
rm -rf dependencies;
- if [[ $TRAVIS_OS_NAME == "osx" ]]; then
sed -i '' "s,git@github.com:,https://github.com/,g" CMakeLists.txt;
cmake -G Xcode -H. -Bbuild -DBUILD_FOLDER_SUFFIX:STRING=build
-DFBX_SDK_INCLUDE_DIR="/Applications/Autodesk/FBX SDK/2019.0/include"
-DFBX_SDK_LIBRARY_DEBUG="/Applications/Autodesk/FBX SDK/2019.0/lib/clang/debug/libfbxsdk.a"
-DFBX_SDK_LIBRARY_RELEASE="/Applications/Autodesk/FBX SDK/2019.0/lib/clang/release/libfbxsdk.a";
xcodebuild -project build/FbxPipeline.xcodeproj
-configuration Release;
fi
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then
clang --version;
export CC=${COMPILER_C};
export CXX=${COMPILER_CC};
sed -i 's,git@github.com:,https://github.com/,g' CMakeLists.txt;
cmake -H. -Bbuild -DBUILD_FOLDER_SUFFIX:STRING=build
-DFBX_SDK_INCLUDE_DIR=/home/travis/build/VladSerhiienko/FbxPipeline/FbxSdk/include
-DFBX_SDK_LIBRARY_DEBUG=/home/travis/build/VladSerhiienko/FbxPipeline/FbxSdk/lib/gcc4/x64/debug/libfbxsdk.a
-DFBX_SDK_LIBRARY_RELEASE=/home/travis/build/VladSerhiienko/FbxPipeline/FbxSdk/lib/gcc4/x64/release/libfbxsdk.a;
make -C build;
fi
notifications:
email:
recipients:
- vlad.serhiienko@gmail.com
on_success: change
on_failure: always