language: generic dist: trusty sudo: required env: global: - DEPENDENCY_DIR="${TRAVIS_BUILD_DIR}/dependencies" cache: directories: - ${DEPENDENCY_DIR} matrix: include: - env: CXX=g++-7 CC=gcc-7 addons: apt: packages: - g++-7 sources: &sources - ubuntu-toolchain-r-test install: - script/ci_install.sh - export PATH="${DEPENDENCY_DIR}/cmake/bin:${PATH}" script: - script/ci_build.sh