2019-01-12 20:33:26 +03:00
|
|
|
sudo: required
|
|
|
|
dist: trusty
|
|
|
|
cache: ccache
|
|
|
|
|
|
|
|
language:
|
|
|
|
- c++
|
|
|
|
|
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
|
|
|
|
|
|
|
compiler:
|
|
|
|
- gcc
|
|
|
|
- clang
|
|
|
|
|
|
|
|
env:
|
|
|
|
- |
|
|
|
|
DOC=false
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
os: linux
|
|
|
|
compiler: clang
|
|
|
|
env: DOC=true
|
|
|
|
|
|
|
|
branches:
|
|
|
|
only:
|
2019-02-17 14:53:19 +03:00
|
|
|
- master
|
2019-01-12 20:33:26 +03:00
|
|
|
- branch-1.3
|
2019-02-17 14:53:19 +03:00
|
|
|
- /^feature-.*/
|
|
|
|
- /^fix-.*/
|
|
|
|
- /^issue-.*/
|
|
|
|
- /^str-.*/
|
2019-01-12 20:33:26 +03:00
|
|
|
|
|
|
|
before_script:
|
|
|
|
- |
|
2019-01-12 21:01:30 +03:00
|
|
|
if [ $TRAVIS_OS_NAME = linux ]; then
|
2019-01-12 20:33:26 +03:00
|
|
|
sudo apt-get update -q
|
|
|
|
sudo apt-get install -y libxinerama-dev libxcursor-dev libasound2-dev
|
|
|
|
sudo apt-get install -y doxygen
|
2019-01-12 21:01:30 +03:00
|
|
|
elif [ $TRAVIS_OS_NAME = osx ]; then
|
2019-01-12 20:33:26 +03:00
|
|
|
brew install ccache # need to install on OSX
|
|
|
|
export PATH="/usr/local/opt/ccache/libexec:$PATH"
|
|
|
|
brew install doxygen
|
|
|
|
fi
|
|
|
|
|
|
|
|
script:
|
|
|
|
- |
|
2019-01-12 20:43:18 +03:00
|
|
|
date
|
|
|
|
make
|
|
|
|
date
|
|
|
|
mkdir cmake-build
|
|
|
|
cd cmake-build
|
|
|
|
cmake -G "Unix Makefiles" ..
|
|
|
|
date
|
|
|
|
make
|
|
|
|
date
|
2019-01-12 21:01:30 +03:00
|
|
|
cd -
|
2019-01-12 20:33:26 +03:00
|
|
|
|
|
|
|
after_success:
|
|
|
|
- |
|
|
|
|
if [ $DOC = "true" ]; then
|
|
|
|
doxygen --version
|
2019-01-12 20:43:18 +03:00
|
|
|
date
|
2019-01-12 21:01:30 +03:00
|
|
|
cd documentation
|
2019-01-12 20:33:26 +03:00
|
|
|
make html
|
2019-01-12 21:01:30 +03:00
|
|
|
cd -
|
2019-01-12 20:43:18 +03:00
|
|
|
date
|
2019-01-12 20:33:26 +03:00
|
|
|
fi
|