2016-06-14 16:30:00 +08:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
|
|
|
|
# via the "travis encrypt" command using the project repo's public key
|
2016-06-16 00:35:25 +08:00
|
|
|
- secure: "0ROQiFbsZo33ce2v5VjBxNljemh/HU70ntSSPygYwaDFymubts/62SixXVkbKNIFdrs3uYD6qeA/eMmpqXxLcs+PXNq5NrH7eSWw9oDIKMhq3NQH/IZLdRfXwihHimZ1qEs/TXyWlT2aC4rpBi1py3cJeTh1aBMlz4V/nm16iRAgc596ThNTuPDHa0F9/gZnwccI/Rr9VpiYn7vEBbuY9lYr43D0G3NuuQyvvlHShroH09fh6KyFOWIY38AQtnuVGNC1fIiAUk7TUqDqSBwhIrUV5saHbP0kca6DP32REkv//h4JwM76UHv+ntVEoK/UiztJHMkrw71gXYTyvIvlDBpT+IDoeIwUW2QFNQ5zJZI7FM8k0+oeK+F7k/mkffDzr1zww/PQoxqFBF0PoxAni/L9qkA4X2o1A6mRDbe9besp2LQG6Vniwj3bHpCId2QiiMrANVg0EAqkcL2mVFEaqZsh90qCkr1UDq4WQoYbXh0Fy3UnQpbuxDvCME8u03lwuv6ds/SBxc5cgKv7oWXgezaDg7/OCR+0lIAGuLqmNRD8Xw7a0WZGmSbYCHIZmeyFja2KuUvMiVCt8+QsyZr3e523DwBwnSj1BIYFRstMaSEJgu9B8rfTRRllOOKJXCQtdFVuGu8VI6PniSAkI6c535yOWzsuS8HwIkN2ll+Wn7E="
|
2016-06-14 16:30:00 +08:00
|
|
|
|
2016-06-03 19:41:19 +08:00
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
|
|
|
include:
|
|
|
|
#Linux build
|
|
|
|
- os: linux
|
|
|
|
dist: trusty
|
|
|
|
language: cpp
|
|
|
|
env:
|
2017-03-29 18:04:03 +08:00
|
|
|
# - CMAKECMD_ARGS="-DBUILD_OSG_EXAMPLES=ON -DBUILD_OSG_PLUGINS_BY_DEFAULT=ON -DBUILD_OSG_APPLICATIONS=ON"
|
|
|
|
- CMAKECMD_ARGS="-DBUILD_OSG_EXAMPLES=OFF -DBUILD_OSG_PLUGINS_BY_DEFAULT=ON -DBUILD_OSG_APPLICATIONS=ON"
|
2016-06-03 19:41:19 +08:00
|
|
|
#- LLVM_VERSION=3.8
|
|
|
|
sudo: false
|
|
|
|
cache:
|
|
|
|
apt: true
|
|
|
|
directories:
|
|
|
|
- $HOME/.ccache
|
2016-06-14 16:30:00 +08:00
|
|
|
compiler:
|
|
|
|
#- clang
|
2016-06-16 20:15:37 +08:00
|
|
|
- gcc
|
2016-06-03 19:41:19 +08:00
|
|
|
addons:
|
2016-06-16 00:35:25 +08:00
|
|
|
coverity_scan:
|
|
|
|
project:
|
|
|
|
name: "openscenegraph/OpenSceneGraph"
|
2016-06-16 20:15:37 +08:00
|
|
|
description: "OpenSceneGraph build"
|
|
|
|
notification_email: robert@openscenegraph.com
|
2016-06-16 18:55:27 +08:00
|
|
|
build_command_prepend: "cmake -DCMAKE_BUILD_TYPE=Release ."
|
2016-06-16 00:35:25 +08:00
|
|
|
build_command: "make -j 3"
|
|
|
|
branch_pattern: coverity_scan
|
2016-06-03 19:41:19 +08:00
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
#- llvm-toolchain-precise-3.8
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
#- clang-3.8
|
|
|
|
- g++
|
|
|
|
- cmake
|
2016-06-14 23:51:07 +08:00
|
|
|
|
2016-06-15 18:42:01 +08:00
|
|
|
# OSX build
|
|
|
|
- os: osx
|
|
|
|
language: cpp
|
2017-02-03 17:01:15 +08:00
|
|
|
env:
|
2017-02-08 03:24:03 +08:00
|
|
|
- CMAKECMD_ARGS="-DBUILD_OSG_EXAMPLES=OFF -DBUILD_OSG_PLUGINS_BY_DEFAULT=ON -DBUILD_OSG_APPLICATIONS=ON"
|
2017-02-03 17:01:15 +08:00
|
|
|
- os: osx
|
|
|
|
language: cpp
|
|
|
|
env:
|
2017-02-08 03:24:03 +08:00
|
|
|
- CMAKECMD_ARGS="-DBUILD_OSG_EXAMPLES=ON -DBUILD_OSG_PLUGINS_BY_DEFAULT=OFF -DBUILD_OSG_APPLICATIONS=OFF"
|
2016-06-15 18:42:01 +08:00
|
|
|
|
|
|
|
# script:
|
|
|
|
# - mkdir build
|
|
|
|
# - cd build
|
|
|
|
# - travis_wait 60 cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../product -DBUILD_OSG_EXAMPLES=ON ..
|
|
|
|
# - make install -j 3
|
|
|
|
|
|
|
|
script:
|
2017-02-03 17:01:15 +08:00
|
|
|
- if [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then mkdir build && cd build && travis_wait 60 cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../product $CMAKECMD_ARGS ../ ; fi
|
|
|
|
- if [ -f CMakeCache.txt ]; then make -j3 ; fi
|