2013-04-08 15:45:39 +00:00
|
|
|
before_install:
|
2014-09-07 23:52:03 +00:00
|
|
|
- sudo apt-get install cmake python3
|
2013-04-08 15:45:39 +00:00
|
|
|
|
2015-03-16 22:20:00 +00:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
|
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:
|
2014-12-23 17:36:39 +00:00
|
|
|
- LINUX=1 TRAVIS_NO_EXPORT=YES
|
|
|
|
- LINUX=1 TRAVIS_NO_EXPORT=NO
|
|
|
|
- LINUX=1 TRAVIS_STATIC_BUILD=ON
|
|
|
|
- LINUX=1 TRAVIS_STATIC_BUILD=OFF
|
|
|
|
- WINDOWS=1 TRAVIS_NO_EXPORT=YES
|
|
|
|
- WINDOWS=1 TRAVIS_NO_EXPORT=NO
|
|
|
|
- WINDOWS=1 TRAVIS_STATIC_BUILD=ON
|
|
|
|
- WINDOWS=1 TRAVIS_STATIC_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:
|
|
|
|
- if [ $WINDOWS ]; then travis_retry sudo apt-get install -q -y gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 binutils-mingw-w64-x86-64; fi
|
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:
|
|
|
|
- cmake -G "Unix Makefiles" -DASSIMP_ENABLE_BOOST_WORKAROUND=YES -DASSIMP_NO_EXPORT=$TRAVIS_NO_EXPORT -STATIC_BUILD=$TRAVIS_STATIC_BUILD
|
|
|
|
- make
|
2014-09-05 05:42:00 +00:00
|
|
|
- sudo make install
|
2014-09-05 06:06:47 +00:00
|
|
|
- sudo ldconfig
|
2014-08-17 22:34:45 +00:00
|
|
|
- cd test/unit
|
|
|
|
- ../../bin/unit
|
2014-09-05 05:42:51 +00:00
|
|
|
- cd ../regression
|
|
|
|
- chmod 755 run.py
|
|
|
|
- ./run.py
|
2014-09-06 07:14:50 +00:00
|
|
|
- echo "=========================================================="
|
|
|
|
- echo "REGRESSION TEST FAILS (results/run_regression_suite_failures.csv)"
|
2014-09-06 06:56:49 +00:00
|
|
|
- cat ../results/run_regression_suite_failures.csv
|
2015-03-20 20:11:08 +00:00
|
|
|
- if [ $ANDROID ]; then ant -v -Dbasedir=${TRAVIS_BUILD_DIR} -f port/jassimp/build.xml ndk-jni ; fi
|