File tree Expand file tree Collapse file tree 1 file changed +29
-4
lines changed Expand file tree Collapse file tree 1 file changed +29
-4
lines changed Original file line number Diff line number Diff line change 1- dist : trusty
1+ # Source: https://github.com/boostorg/hana/blob/master/.travis.yml
2+
23language : cpp
4+ sudo : true
35compiler :
46 - clang
57 - gcc
68addons :
79 apt :
810 sources :
911 - ubuntu-toolchain-r-test
10- package :
11- - cmake
12- - protobuf
12+ cache :
13+ directories :
14+ - ${TRAVIS_BUILD_DIR}/deps/cmake
15+ - ${TRAVIS_BUILD_DIR}/deps/protobuf
16+ install :
17+ - DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
18+ - mkdir -p "${DEPS_DIR}" && cd "${DEPS_DIR}"
19+
20+ # Install a recent version of CMake
21+ - |
22+ CMAKE_URL="https://cmake.org/files/v3.7/cmake-3.7.2-Linux-x86_64.tar.gz"
23+ mkdir cmake
24+ travis_retry wget --no-check-certificate --quiet -O - ${CMAKE_URL} | tar --strip-components=1 -xz -C cmake
25+ export PATH=${DEPS_DIR}/cmake/bin:${PATH}
26+
27+ # Install a recent version of the Protobuf
28+ - |
29+ PROTOBUF_URL="https://github.com/google/protobuf/releases/download/v3.2.0/protobuf-cpp-3.2.0.tar.gz"
30+ mkdir protobuf
31+ travis_retry wget --no-check-certificate --quiet -O - ${PROTOBUF_URL} | tar --strip-components=1 -xz -C protobuf
32+ cd protobuf
33+ ./configure --prefix=/usr
34+ make
35+ make install
36+ before_script :
37+ - cd "${TRAVIS_BUILD_DIR}"
1338script :
1439 - mkdir build
1540 - cd build
You can’t perform that action at this time.
0 commit comments