You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 line
831B

  1. language: generic
  2. dist: trusty
  3. sudo: required
  4. env:
  5. global:
  6. - DEPENDENCY_DIR="${TRAVIS_BUILD_DIR}/dependencies"
  7. cache:
  8. directories:
  9. - ${DEPENDENCY_DIR}
  10. matrix:
  11. include:
  12. - env: CXX=g++-7 CC=gcc-7
  13. addons:
  14. apt:
  15. packages:
  16. - g++-7
  17. sources: &sources
  18. - ubuntu-toolchain-r-test
  19. install:
  20. - mkdir -p "${DEPENDENCY_DIR}" && cd "${DEPENDENCY_DIR}"
  21. - |
  22. if [[ ! -d "$(ls -A ${DEPENDENCY_DIR}/cmake)" ]]; then
  23. CMAKE_URL="https://cmake.org/files/v3.8/cmake-3.8.2-Linux-x86_64.tar.gz"
  24. mkdir -p cmake && travis_retry wget --no-check-certificate --quiet -O - "${CMAKE_URL}" | tar --strip-components=1 -xz -C cmake
  25. fi
  26. export PATH="${DEPENDENCY_DIR}/cmake/bin:${PATH}"
  27. - cd ${TRAVIS_BUILD_DIR}
  28. script:
  29. - script/ci_build.sh