2018-12-27 01:19:25 +03:00
|
|
|
sudo: required
|
|
|
|
dist: trusty
|
|
|
|
cache: ccache
|
|
|
|
|
|
|
|
language:
|
|
|
|
- c++
|
|
|
|
# - objective-c
|
|
|
|
|
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
2018-12-29 00:48:13 +03:00
|
|
|
|
2018-12-27 01:19:25 +03:00
|
|
|
compiler:
|
|
|
|
- gcc
|
|
|
|
- clang
|
|
|
|
|
2018-12-28 06:47:23 +03:00
|
|
|
env:
|
|
|
|
- |
|
|
|
|
ANALYZE=false
|
|
|
|
DOC=false
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
os: linux
|
|
|
|
compiler: clang
|
|
|
|
env: ANALYZE=true DOC=true
|
|
|
|
|
2018-12-27 01:19:25 +03:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
2019-02-16 14:07:49 +03:00
|
|
|
- branch-1.3
|
|
|
|
- /^feature-.*/
|
|
|
|
- /^fix-.*/
|
|
|
|
- /^issue-.*/
|
|
|
|
- /^str-.*/
|
2018-12-27 01:19:25 +03:00
|
|
|
|
|
|
|
before_script:
|
|
|
|
- |
|
|
|
|
if [ $TRAVIS_OS_NAME == linux ]; then
|
|
|
|
sudo apt-get update -q
|
|
|
|
sudo apt-get install -y libxinerama-dev libxcursor-dev libasound2-dev
|
2018-12-29 00:48:13 +03:00
|
|
|
sudo apt-get install -y doxygen
|
2018-12-27 01:19:25 +03:00
|
|
|
elif [ $TRAVIS_OS_NAME == osx ]; then
|
|
|
|
brew install ccache # need to install on OSX
|
|
|
|
export PATH="/usr/local/opt/ccache/libexec:$PATH"
|
|
|
|
brew install doxygen
|
|
|
|
fi
|
|
|
|
|
|
|
|
script:
|
|
|
|
- |
|
2018-12-28 06:47:23 +03:00
|
|
|
if [ $ANALYZE = "false" ]; then
|
|
|
|
autoconf
|
|
|
|
./configure
|
|
|
|
make
|
|
|
|
mkdir cmake-build
|
|
|
|
cmake -G "Unix Makefiles" -S . -B"./cmake-build"
|
|
|
|
cd cmake-build
|
|
|
|
make
|
|
|
|
else
|
|
|
|
scan-build cmake -G "Unix Makefiles"
|
|
|
|
scan-build --status-bugs -v
|
|
|
|
make
|
|
|
|
fi
|
2018-12-27 01:19:25 +03:00
|
|
|
|
|
|
|
after_success:
|
|
|
|
- |
|
2018-12-28 06:47:23 +03:00
|
|
|
if [ $DOC = "true" ]; then
|
2018-12-27 01:19:25 +03:00
|
|
|
doxygen --version
|
|
|
|
cd documentation
|
|
|
|
make html
|
|
|
|
cd -
|
|
|
|
fi
|
|
|
|
|
2019-02-16 11:16:07 +03:00
|
|
|
# explicit email notifications don't play well with forks: don't use them
|
|
|
|
# default: committer and author get notifications
|
|
|
|
# we're now using defaults for everything, hence settings are commented
|
|
|
|
# out, left only for documentation purposes...
|
|
|
|
|
|
|
|
#notifications:
|
|
|
|
# email:
|
|
|
|
# on_success: change # default: change, may be: never
|
|
|
|
# on_failure: always # default: always
|