2017-06-13 18:29:25 +00:00
|
|
|
sudo: required
|
2017-06-06 09:38:08 +00:00
|
|
|
language: cpp
|
|
|
|
|
2017-09-16 12:53:02 +00:00
|
|
|
cache: ccache
|
|
|
|
|
2013-04-08 15:45:39 +00:00
|
|
|
before_install:
|
2017-10-17 15:37:40 +00:00
|
|
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get update -qq && sudo apt-get install cmake cppcheck && sudo apt-get install cmake python3 && sudo apt-get install -qq freeglut3-dev libxmu-dev libxi-dev ; echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca- ; fi
|
2017-07-21 10:03:09 +00:00
|
|
|
- 'if [ "$TRAVIS_OS_NAME" = "osx" ]; then
|
2017-07-21 16:58:55 +00:00
|
|
|
if brew ls --versions cmake > /dev/null; then
|
2017-07-21 12:37:42 +00:00
|
|
|
echo cmake already installed.;
|
|
|
|
else
|
2017-07-21 10:36:10 +00:00
|
|
|
brew install cmake;
|
2017-07-21 17:10:32 +00:00
|
|
|
fi;
|
2017-07-21 12:37:42 +00:00
|
|
|
brew install python3;
|
2017-07-21 10:03:09 +00:00
|
|
|
brew install homebrew/x11/freeglut;
|
|
|
|
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
|
2016-11-16 10:39:44 +00:00
|
|
|
# install latest LCOV (1.9 was failing)
|
2017-06-07 07:32:48 +00:00
|
|
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then cd ${TRAVIS_BUILD_DIR} && wget http://ftp.de.debian.org/debian/pool/main/l/lcov/lcov_1.11.orig.tar.gz && tar xf lcov_1.11.orig.tar.gz && sudo make -C lcov-1.11/ install && gem install coveralls-lcov && lcov --version && g++ --version ; fi
|
2013-04-08 15:45:39 +00:00
|
|
|
|
2017-09-16 12:22:37 +00:00
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
|
2017-10-04 17:50:16 +00:00
|
|
|
compiler:
|
|
|
|
- gcc
|
|
|
|
- clang
|
|
|
|
|
2013-04-18 22:37:41 +00:00
|
|
|
env:
|
2015-03-20 20:05:25 +00:00
|
|
|
global:
|
2017-06-28 18:26:15 +00:00
|
|
|
# COVERITY_SCAN_TOKEN
|
2017-07-01 08:42:47 +00:00
|
|
|
- secure: "lZ7pHQvl5dpZWzBQAaIMf0wqrvtcZ4wiZKeIZjf83TEsflW8+z0uTpIuN30ZV6Glth/Sq1OhLnTP5+N57fZU/1ebA5twHdvP4bS5CIUUg71/CXQZNl36xeaqvxsG/xRrdpKOsPdjAOsQ9KPTQulsX43XDLS7CasMiLvYOpqKcPc="
|
2015-03-20 20:05:25 +00:00
|
|
|
- PV=r8e PLATF=linux-x86_64 NDK_HOME=${TRAVIS_BUILD_DIR}/android-ndk-${PV} PATH=${PATH}:${NDK_HOME}
|
2017-09-16 12:34:32 +00:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
2017-12-13 08:55:32 +00:00
|
|
|
# disabled until clang 5.0 analyzer issues are fixed
|
|
|
|
# - os: linux
|
|
|
|
# compiler: clang
|
|
|
|
# env: ANALYZE=ON
|
2017-10-04 17:50:16 +00:00
|
|
|
- os: linux
|
|
|
|
compiler: clang
|
2017-10-07 12:36:54 +00:00
|
|
|
env: ASAN=ON
|
2017-10-07 14:47:06 +00:00
|
|
|
- os: linux
|
|
|
|
compiler: clang
|
|
|
|
env: UBSAN=ON
|
2017-10-04 17:50:16 +00:00
|
|
|
- os: linux
|
|
|
|
compiler: clang
|
2017-10-07 12:36:54 +00:00
|
|
|
env: SHARED_BUILD=ON
|
2017-10-17 16:02:39 +00:00
|
|
|
- os: linux
|
|
|
|
compiler: gcc
|
|
|
|
env: ANALYZE=ON
|
|
|
|
- os: linux
|
|
|
|
compiler: gcc
|
|
|
|
env: DISABLE_EXPORTERS=YES ENABLE_COVERALLS=ON
|
|
|
|
- os: linux
|
|
|
|
compiler: gcc
|
|
|
|
env: SHARED_BUILD=ON
|
2015-12-30 11:46:37 +00:00
|
|
|
|
2016-11-21 19:42:37 +00:00
|
|
|
install:
|
|
|
|
- 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
|
|
|
|
2016-11-16 10:39:44 +00:00
|
|
|
before_script:
|
|
|
|
# init coverage to 0 (optional)
|
2017-06-07 07:32:48 +00:00
|
|
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then cd ${TRAVIS_BUILD_DIR} && lcov --directory . --zerocounters ; fi
|
2016-11-16 10:39:44 +00:00
|
|
|
|
2015-12-30 11:50:40 +00:00
|
|
|
script:
|
2016-11-16 15:11:30 +00:00
|
|
|
- export COVERALLS_SERVICE_NAME=travis-ci
|
|
|
|
- export COVERALLS_REPO_TOKEN=abc12345
|
2015-06-30 04:35:31 +00:00
|
|
|
- . ./.travis.sh
|
2017-06-06 09:38:08 +00:00
|
|
|
|
2016-11-16 10:39:44 +00:00
|
|
|
after_success:
|
2017-06-07 07:32:48 +00:00
|
|
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then cd ${TRAVIS_BUILD_DIR} && lcov --directory . --capture --output-file coverage.info && lcov --remove coverage.info '/usr/*' 'contrib/*' 'test/*' --output-file coverage.info && lcov --list coverage.info && coveralls-lcov --source-encoding=ISO-8859-1 --repo-token=${COVERALLS_TOKEN} coverage.info ; fi
|
2015-12-30 11:46:37 +00:00
|
|
|
|
2015-12-29 15:19:42 +00:00
|
|
|
addons:
|
|
|
|
coverity_scan:
|
|
|
|
project:
|
|
|
|
name: "assimp/assimp"
|
2015-12-29 20:02:46 +00:00
|
|
|
notification_email: kim.kulling@googlemail.com
|
2016-11-21 19:42:37 +00:00
|
|
|
build_command_prepend: "cmake"
|
2015-12-30 13:50:16 +00:00
|
|
|
build_command: "make"
|
2015-12-29 20:02:46 +00:00
|
|
|
branch_pattern: coverity_scan
|