fltk/.travis.yml
Albrecht Schlosser 11ed18a52e Add more branches to Travis-CI control file
All branches named like:

 - master
 - branch-1.3
 - feature-*
 - fix-*
 - issue-*
 - str-*

will be built with Travis-CI in the FLTK standard repo and in the
user's and/or developer's forks if they enabled Travis-CI builds.
2019-02-16 12:07:49 +01:00

83 lines
1.5 KiB
YAML

sudo: required
dist: trusty
cache: ccache
language:
- c++
# - objective-c
os:
- linux
- osx
compiler:
- gcc
- clang
env:
- |
ANALYZE=false
DOC=false
matrix:
include:
os: linux
compiler: clang
env: ANALYZE=true DOC=true
branches:
only:
- master
- branch-1.3
- /^feature-.*/
- /^fix-.*/
- /^issue-.*/
- /^str-.*/
before_script:
- |
if [ $TRAVIS_OS_NAME == linux ]; then
sudo apt-get update -q
sudo apt-get install -y libxinerama-dev libxcursor-dev libasound2-dev
sudo apt-get install -y doxygen
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:
- |
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
after_success:
- |
if [ $DOC = "true" ]; then
doxygen --version
cd documentation
make html
cd -
fi
# 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