JKQtPlotter/.travis.yml
Ondřej Čertík 18f454f1b2 Only use clang on macOS
The gcc version was using clang underneath also. If we wanted to use
gcc, we would need to ensure cmake picks it up properly. We do not
really need to test gcc on macOS, as long as things build correctly
there with the default compiler (clang).
2019-11-18 12:17:24 -07:00

89 lines
2.2 KiB
YAML

language: cpp
sudo: false
compiler:
- gcc
- clang
os:
- linux
- osx
dist: xenial
osx_image: xcode8.3
matrix:
exclude:
# Disable all automatic entries in the test matrix
- compiler: clang
- compiler: gcc
- os: osx
- os: linux
include:
# Explicitly add tests that we want to run
- 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
- compiler: clang
os: osx
- compiler: clang
os: linux
addons:
apt:
packages:
- libglu1-mesa-dev
- compiler: gcc
os: linux
addons:
apt:
packages:
- libglu1-mesa-dev
install:
- source ci/install_travis.sh
script:
- ci/test_travis.sh
notifications:
email: false
deploy:
provider: pages
verbose: true
deployment_file: true
skip_cleanup: true
local_dir: doc/html
github_token: $GH_REPO_TOKEN
on:
branch: master
condition: $BUILD_DOXYGEN = yes