Improve Travis: test on Linux and macOS

Keep the Doxygen run as before, but also test building and installing
using cmake on Linux and macOS with both gcc and clang.
This commit is contained in:
Ondřej Čertík 2019-11-18 11:43:37 -07:00
parent cbd9882a30
commit fd2a8f5c70

View File

@ -1,12 +1,23 @@
language: cpp
sudo: false sudo: false
compiler:
- gcc
- clang
os:
- linux
- osx
dist: xenial dist: xenial
osx_image: xcode7.3
branches: matrix:
only: exclude:
- master - compiler: clang
- os: osx
# Install dependencies include:
addons: - env: BUILD_DOXYGEN="yes"
compiler: gcc
os: linux
addons:
apt: apt:
packages: packages:
- doxygen - doxygen
@ -14,9 +25,7 @@ addons:
- doxygen-latex - doxygen-latex
- doxygen-gui - doxygen-gui
- graphviz - graphviz
install:
install:
- pwd - pwd
- doxygen --version - doxygen --version
############################################################################ ############################################################################
@ -32,8 +41,7 @@ install:
- travis_retry wget -O - ${DOXYGEN_URL} | tar --strip-components=1 -xz -C doxygen - travis_retry wget -O - ${DOXYGEN_URL} | tar --strip-components=1 -xz -C doxygen
- export PATH=${DEPS_DIR}/doxygen/bin:${PATH} - export PATH=${DEPS_DIR}/doxygen/bin:${PATH}
- doxygen --version - doxygen --version
script:
script:
- pwd - pwd
- cd ${TRAVIS_BUILD_DIR} - cd ${TRAVIS_BUILD_DIR}
- cd doc - cd doc
@ -41,6 +49,18 @@ script:
- doxygen Doxyfile - doxygen Doxyfile
- echo "" > html/.nojekyll - echo "" > html/.nojekyll
install:
- cmake --version
script:
- mkdir build
- cd build
- cmake -DCMAKE_INSTALL_PREFIX=$HOME/ext ..
- cmake --build . --target install
notifications:
email: false
deploy: deploy:
provider: pages provider: pages
verbose: true verbose: true
@ -50,3 +70,4 @@ deploy:
github_token: $GH_REPO_TOKEN github_token: $GH_REPO_TOKEN
on: on:
branch: master branch: master
condition: $BUILD_DOXYGEN = yes