Skip to content
Snippets Groups Projects
.travis.yml 3.18 KiB
sudo: false
services:
  - docker

language: cpp

# default values
os: linux
compiler: gcc

osx_image: xcode10.2

cache:
    directories:
      - $HOME/.cache

git:
    depth: 100500

jobs:
    include:
      - name: RelWithDebInfoWError build + test (Linux, gcc)
        env: TARGET=test
      - name: RelWithDebInfoWError build + test (Linux, clang)
        env: TARGET=test
        compiler: clang
      - name: RelWithDebInfoWError build + test (OS X Mojave 10.14)
        env: TARGET=test
        os: osx
      - name: Debug build + test + coverage (Linux, gcc)
        env: TARGET=coverage
      - name: RelWithDebInfoWError build + test (OS X High Sierra 10.13)
        env: TARGET=test
        os: osx
        osx_image: xcode9.4
        if: branch = "master"
      - name: LTO build + test (Linux, gcc)
        env: TARGET=test CMAKE_EXTRA_PARAMS=-DENABLE_LTO=ON
        if: branch = "master"
      - name: LTO build + test (Linux, clang)
        env: TARGET=test CMAKE_EXTRA_PARAMS=-DENABLE_LTO=ON
        if: branch = "master"
        compiler: clang
      - name: LTO build + test (OS X Mojave 10.14)
        os: osx
        env: TARGET=test CMAKE_EXTRA_PARAMS=-DENABLE_LTO=ON
        if: branch = "master"
      - name: Create and deploy tarball
        env: TARGET=source
        if: branch = "master"
      - name: CentOS 6 build + test + deploy RPM
        env: OS=el DIST=6
        if: branch = "master"
      - name: CentOS 7 build + test + deploy RPM
        env: OS=el DIST=7
        if: branch = "master"
      - name: Fedora 28 build + test + deploy RPM
        env: OS=fedora DIST=28
        if: branch = "master"
      - name: Fedora 29 build + test + deploy RPM
        env: OS=fedora DIST=29
        if: branch = "master"
      - name: Ubuntu Trusty (14.04) build + deploy DEB
        env: OS=ubuntu DIST=trusty
        if: branch = "master"
      - name: Ubuntu Xenial (16.04) build + deploy DEB
        env: OS=ubuntu DIST=xenial
        if: branch = "master"
      - name: Ubuntu Bionic (18.04) build + deploy DEB
        env: OS=ubuntu DIST=bionic