.travis.yml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. sudo: required
  2. language: cpp
  3. cache: ccache
  4. before_install:
  5. - 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
  6. - 'if [ "$TRAVIS_OS_NAME" = "osx" ]; then
  7. if brew ls --versions cmake > /dev/null; then
  8. echo cmake already installed.;
  9. else
  10. brew install cmake;
  11. fi;
  12. brew install python3;
  13. brew install homebrew/x11/freeglut;
  14. fi'
  15. - 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
  16. # install latest LCOV (1.9 was failing)
  17. - 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
  18. os:
  19. - linux
  20. compiler:
  21. - gcc
  22. - clang
  23. env:
  24. global:
  25. - secure: "lZ7pHQvl5dpZWzBQAaIMf0wqrvtcZ4wiZKeIZjf83TEsflW8+z0uTpIuN30ZV6Glth/Sq1OhLnTP5+N57fZU/1ebA5twHdvP4bS5CIUUg71/CXQZNl36xeaqvxsG/xRrdpKOsPdjAOsQ9KPTQulsX43XDLS7CasMiLvYOpqKcPc="
  26. - PV=r8e PLATF=linux-x86_64 NDK_HOME=${TRAVIS_BUILD_DIR}/android-ndk-${PV} PATH=${PATH}:${NDK_HOME}
  27. git:
  28. depth: 1
  29. matrix:
  30. include:
  31. - os: linux
  32. compiler: clang
  33. env: ASAN=ON
  34. - os: linux
  35. compiler: clang
  36. env: UBSAN=ON
  37. - os: linux
  38. compiler: clang
  39. env: SHARED_BUILD=ON
  40. - os: linux
  41. compiler: gcc
  42. env: ANALYZE=ON
  43. - os: linux
  44. compiler: gcc
  45. env: ENABLE_COVERALLS=ON
  46. - os: linux
  47. compiler: gcc
  48. env: SHARED_BUILD=ON
  49. install:
  50. - 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
  51. before_script:
  52. cmake . -DASSIMP_ENABLE_BOOST_WORKAROUND=YES
  53. script:
  54. - export COVERALLS_SERVICE_NAME=travis-ci
  55. - export COVERALLS_REPO_TOKEN=abc12345
  56. - . ./.travis.sh
  57. after_success:
  58. - 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
  59. addons:
  60. coverity_scan:
  61. project:
  62. name: "assimp/assimp"
  63. notification_email: [email protected]
  64. build_command_prepend: "cmake ./"
  65. build_command: "make -j4"
  66. branch_pattern: coverity_scan