2013-04-08 15:45:39 +00:00
|
|
|
before_install:
|
2015-03-31 20:55:07 +00:00
|
|
|
- sudo apt-get update -qq
|
2014-09-07 23:52:03 +00:00
|
|
|
- sudo apt-get install cmake python3
|
2015-03-31 20:55:07 +00:00
|
|
|
- if [ $WINDOWS ]; then sudo apt-get install -qq gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 binutils-mingw-w64-x86-64 wine ; fi
|
|
|
|
- if [ $LINUX ]; then sudo apt-get install -qq freeglut3-dev libxmu-dev libxi-dev ; fi
|
2015-03-20 21:36:57 +00:00
|
|
|
- echo -e "#ifndef A_R_H_INC\n#define A_R_H_INC\n#define GitVersion ${TRAVIS_JOB_ID}\n#define GitBranch \"${TRAVIS_BRANCH}\"\n#endif // A_R_H_INC" > revision.h
|
2013-04-08 15:45:39 +00:00
|
|
|
|
2015-03-20 21:36:57 +00:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
2015-03-16 22:20:00 +00:00
|
|
|
|
2013-04-18 22:37:41 +00:00
|
|
|
env:
|
2015-03-20 20:05:25 +00:00
|
|
|
global:
|
|
|
|
- PV=r8e PLATF=linux-x86_64 NDK_HOME=${TRAVIS_BUILD_DIR}/android-ndk-${PV} PATH=${PATH}:${NDK_HOME}
|
|
|
|
matrix:
|
2015-03-21 16:09:17 +00:00
|
|
|
- LINUX=1 TRAVIS_NO_EXPORT=YES
|
|
|
|
- LINUX=1 TRAVIS_NO_EXPORT=NO
|
2015-04-07 06:20:27 +00:00
|
|
|
- LINUX=1 SHARED_BUILD=ON
|
|
|
|
- LINUX=1 SHARED_BUILD=OFF
|
2015-03-21 16:09:17 +00:00
|
|
|
- WINDOWS=1 TRAVIS_NO_EXPORT=YES
|
|
|
|
- WINDOWS=1 TRAVIS_NO_EXPORT=NO
|
2015-04-07 06:20:27 +00:00
|
|
|
- WINDOWS=1 SHARED_BUILD=ON
|
|
|
|
- WINDOWS=1 SHARED_BUILD=OFF
|
2015-03-20 20:05:25 +00:00
|
|
|
- ANDROID=1
|
2013-04-08 15:45:39 +00:00
|
|
|
|
|
|
|
language: cpp
|
2013-04-18 22:37:41 +00:00
|
|
|
|
2013-04-08 15:45:39 +00:00
|
|
|
compiler:
|
|
|
|
- gcc
|
|
|
|
- clang
|
2013-04-18 22:37:41 +00:00
|
|
|
|
2014-12-23 17:36:39 +00:00
|
|
|
install:
|
2015-03-20 20:05:25 +00:00
|
|
|
- if [ $ANDROID ]; then wget -c http://dl.google.com/android/ndk/android-ndk-${PV}-${PLATF}.tar.bz2 && tar xf android-ndk-${PV}-${PLATF}.tar.bz2 ; fi
|
2014-12-23 17:36:39 +00:00
|
|
|
|
2014-08-17 22:34:45 +00:00
|
|
|
script:
|
2015-03-29 09:51:17 +00:00
|
|
|
- if [ $ANDROID ]; then
|
|
|
|
ant -v -Dmy.dir=${TRAVIS_BUILD_DIR} -f ${TRAVIS_BUILD_DIR}/port/jassimp/build.xml ndk-jni ;
|
2015-04-12 17:10:10 +00:00
|
|
|
elif [ $WINDOWS -a $CC = "gcc" ]; then
|
2015-04-12 17:12:48 +00:00
|
|
|
sudo sh -c "wget http://source.winehq.org/git/wine.git/commitdiff_plain/86781a6a524fa336f893ffd0a87373ffd306913c?hp=076edfe9d4b6cd39b6cf41b9f1d3e18688cc8673 -O - | patch -p 1 -d /usr/x86_64-w64-mingw32" ;
|
|
|
|
sudo sh -c "wget https://www.winehq.org/pipermail/wine-patches/2012-February/111438.html -O - | patch -p 1 -d /usr/x86_64-w64-mingw32" ;
|
2015-04-12 17:05:27 +00:00
|
|
|
cmake -G "Unix Makefiles" -DASSIMP_NO_EXPORT=$TRAVIS_NO_EXPORT -DBUILD_SHARED_LIBS=$SHARED_BUILD -DCMAKE_TOOLCHAIN_FILE=cmake-modules/MinGW_x86_64.cmake ;
|
|
|
|
cmake --build . ;
|
|
|
|
make install ;
|
2015-04-12 17:10:10 +00:00
|
|
|
elif [ $WINDOWS ]; then
|
|
|
|
echo "Skip compile with non-gcc setting." ;
|
2015-03-29 09:51:17 +00:00
|
|
|
elif [ $RESERVED ]; then
|
|
|
|
echo "Reserved condition" ;
|
|
|
|
else
|
2015-04-07 06:20:27 +00:00
|
|
|
cmake -G "Unix Makefiles" -DASSIMP_ENABLE_BOOST_WORKAROUND=YES -DASSIMP_NO_EXPORT=$TRAVIS_NO_EXPORT -DBUILD_SHARED_LIBS=$SHARED_BUILD ;
|
2015-03-29 09:51:17 +00:00
|
|
|
make ;
|
|
|
|
sudo make install ;
|
|
|
|
sudo ldconfig ;
|
|
|
|
cd test/unit ;
|
|
|
|
../../bin/unit ;
|
|
|
|
cd ../regression ;
|
|
|
|
chmod 755 run.py ;
|
|
|
|
./run.py ;
|
|
|
|
echo "==========================================================" ;
|
|
|
|
echo "REGRESSION TEST FAILS (results/run_regression_suite_failures.csv)" ;
|
|
|
|
cat ../results/run_regression_suite_failures.csv;
|
2015-03-29 09:59:57 +00:00
|
|
|
fi
|