language: cpp
branches:
  only:
    - master
    - develop
os:
  - linux
  - osx
dist: trusty         # cmake 3.2
osx_image: xcode7.3  # OSX 10.11, cmake 3.5
env:
  global:
    secure: "g3Ij6YqiOl/RaD3mdSHestkTDm49JPcJ90EbpFPfykkLZVAmZn6PP4WDvhBV9zcy4kUkERQs+8lj88wzw4JidxtT67WQBd/Lnvl06c+B1AB5jwoK9X5MKaOGvtXA18P8412rhB4a+1xFILuvM+2e74QUEPBV6tPlqZg9QZ9jwso="
  matrix:
    - BUILD_TYPE=Release
    - BUILD_TYPE=Debug
cache:
  ccache: true
  directories: build/llvm


before_install:
  - cmake --version

script:
  - scripts/build.sh
  - cd build && ctest

deploy:
  provider: script
  script: scripts/travis_update_docs.sh
  skip_cleanup: true
  on:
    branch: develop
    condition: $TRAVIS_JOB_NUMBER == "$TRAVIS_BUILD_NUMBER.1"

language: cpp
branches:
  only:
    - master
    - develop
os:
  - linux
  - osx
dist: trusty         # cmake 3.2
osx_image: xcode7.3  # OSX 10.11, cmake 3.5
env:
  global:
    secure: "g3Ij6YqiOl/RaD3mdSHestkTDm49JPcJ90EbpFPfykkLZVAmZn6PP4WDvhBV9zcy4kUkERQs+8lj88wzw4JidxtT67WQBd/Lnvl06c+B1AB5jwoK9X5MKaOGvtXA18P8412rhB4a+1xFILuvM+2e74QUEPBV6tPlqZg9QZ9jwso="
  matrix:
    - BUILD_TYPE=Release
    - BUILD_TYPE=Debug
cache:
  ccache: true
  directories: build/llvm


before_install:
  - cmake --version

script:
  - scripts/build.sh
  - cd build && ctest
  - cd ..

deploy:
  provider: script
  script: scripts/travis_update_docs.sh
  skip_cleanup: true
  on:
    branch: develop
    condition: $TRAVIS_JOB_NUMBER == "$TRAVIS_BUILD_NUMBER.1"

Fix Travis CI deployment script
Fix Travis CI deployment script
