2019-11-19 02:43:37 +08:00
|
|
|
language: cpp
|
2019-01-13 16:31:02 +08:00
|
|
|
sudo: false
|
2019-11-19 02:43:37 +08:00
|
|
|
compiler:
|
|
|
|
- gcc
|
|
|
|
- clang
|
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
2019-01-15 23:19:04 +08:00
|
|
|
dist: xenial
|
2019-11-19 02:43:37 +08:00
|
|
|
osx_image: xcode7.3
|
2019-01-13 16:31:02 +08:00
|
|
|
|
2019-11-19 02:43:37 +08:00
|
|
|
matrix:
|
|
|
|
exclude:
|
2019-11-19 02:48:50 +08:00
|
|
|
# Disable all automatic entries in the test matrix
|
2019-11-19 02:43:37 +08:00
|
|
|
- compiler: clang
|
2019-11-19 02:48:50 +08:00
|
|
|
- compiler: gcc
|
2019-11-19 02:43:37 +08:00
|
|
|
- os: osx
|
2019-11-19 02:48:50 +08:00
|
|
|
- os: linux
|
2019-11-19 02:43:37 +08:00
|
|
|
include:
|
2019-11-19 02:48:50 +08:00
|
|
|
# Explicitly add tests that we want to run
|
2019-11-19 02:43:37 +08:00
|
|
|
- env: BUILD_DOXYGEN="yes"
|
|
|
|
compiler: gcc
|
|
|
|
os: linux
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- doxygen
|
|
|
|
- doxygen-doc
|
|
|
|
- doxygen-latex
|
|
|
|
- doxygen-gui
|
|
|
|
- graphviz
|
|
|
|
install:
|
|
|
|
- pwd
|
|
|
|
- doxygen --version
|
|
|
|
############################################################################
|
|
|
|
# All the dependencies are installed in ${TRAVIS_BUILD_DIR}/deps/
|
|
|
|
############################################################################
|
|
|
|
- DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
|
|
|
|
- mkdir -p ${DEPS_DIR} && cd ${DEPS_DIR}
|
|
|
|
############################################################################
|
|
|
|
# Install a recent Doxygen
|
|
|
|
############################################################################
|
|
|
|
- DOXYGEN_URL="http://doxygen.nl/files/doxygen-1.8.16.linux.bin.tar.gz"
|
|
|
|
- mkdir doxygen
|
|
|
|
- travis_retry wget -O - ${DOXYGEN_URL} | tar --strip-components=1 -xz -C doxygen
|
|
|
|
- export PATH=${DEPS_DIR}/doxygen/bin:${PATH}
|
|
|
|
- doxygen --version
|
|
|
|
script:
|
|
|
|
- pwd
|
|
|
|
- cd ${TRAVIS_BUILD_DIR}
|
|
|
|
- cd doc
|
|
|
|
- doxygen --version
|
|
|
|
- doxygen Doxyfile
|
|
|
|
- echo "" > html/.nojekyll
|
2019-11-19 02:48:50 +08:00
|
|
|
- compiler: clang
|
|
|
|
os: osx
|
|
|
|
- compiler: gcc
|
|
|
|
os: osx
|
|
|
|
- compiler: clang
|
|
|
|
os: linux
|
|
|
|
- compiler: gcc
|
|
|
|
os: linux
|
2019-01-13 16:31:02 +08:00
|
|
|
|
2019-01-15 18:35:56 +08:00
|
|
|
install:
|
2019-11-19 02:56:02 +08:00
|
|
|
- source ci/install_travis.sh
|
2019-01-13 16:31:02 +08:00
|
|
|
|
|
|
|
script:
|
2019-11-19 02:56:02 +08:00
|
|
|
- ci/test_travis.sh
|
2019-11-19 02:43:37 +08:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
email: false
|
2019-01-13 16:31:02 +08:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
provider: pages
|
2019-05-18 02:46:52 +08:00
|
|
|
verbose: true
|
|
|
|
deployment_file: true
|
2019-01-13 16:31:02 +08:00
|
|
|
skip_cleanup: true
|
|
|
|
local_dir: doc/html
|
|
|
|
github_token: $GH_REPO_TOKEN
|
|
|
|
on:
|
2019-01-15 18:26:20 +08:00
|
|
|
branch: master
|
2019-11-19 02:43:37 +08:00
|
|
|
condition: $BUILD_DOXYGEN = yes
|