language: cpp

# on:
#   tags: true
#   all_branches: true
#   condition: $TRAVIS_TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]+

matrix:
  include:
    - os: linux
      dist: trusty
      sudo: required
    - os: osx
      osx_image: xcode10.2
    - os: osx
      osx_image: xcode10.1

addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
      - llvm-toolchain-trusty-7
      - sourceline: 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-7 main'
        key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
    packages:
      - clang-7
      - libc++-7-dev
      - libc++abi-7-dev

script:
  - sh .travis/script.sh

env:
  global:
    secure: VeM2aH5pa2Q2lsFw6Z1fwfMvDm0WxTZu5AM7Z5wqcgSu+Q+MUoleUy6gh+NSsbqfbAcc06CMsNMCeclGtF8Ft9PHWIT8qPltYgPSYSO6h1FS++RRtt0K5l0rjM3W38yid1607qrj+WCMtJads/JsgbCUiLLfPukPnCVcrL/H/so=

language: cpp

on:
  tags: true
  all_branches: true
  condition: $TRAVIS_TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]+

matrix:
  include:
    - os: linux
      dist: trusty
      sudo: required
    - os: osx
      osx_image: xcode10.2
    - os: osx
      osx_image: xcode10.1

addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
      - llvm-toolchain-trusty-7
      - sourceline: 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-7 main'
        key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
    packages:
      - clang-7
      - libc++-7-dev
      - libc++abi-7-dev

script:
  - sh .travis/script.sh

env:
  global:
    secure: VeM2aH5pa2Q2lsFw6Z1fwfMvDm0WxTZu5AM7Z5wqcgSu+Q+MUoleUy6gh+NSsbqfbAcc06CMsNMCeclGtF8Ft9PHWIT8qPltYgPSYSO6h1FS++RRtt0K5l0rjM3W38yid1607qrj+WCMtJads/JsgbCUiLLfPukPnCVcrL/H/so=

Enable builds only for release tags
TravisCI: Enable builds only for release tags
