File tree Expand file tree Collapse file tree 1 file changed +19
-8
lines changed Expand file tree Collapse file tree 1 file changed +19
-8
lines changed Original file line number Diff line number Diff line change 11# Source: https://github.com/boostorg/hana/blob/master/.travis.yml
22
3+ # Sudo is required for installing recent versions of dependencies.
4+ sudo : required
5+
6+ # Use C++ build environment.
37language : cpp
4- sudo : true
8+
9+ # Creates a matrix build job to build the product with the different compilers.
510compiler :
611 - clang
712 - gcc
8- addons :
9- apt :
10- sources :
11- - ubuntu-toolchain-r-test
13+
14+ # Cache dependencies to speed up the build.
1215cache :
1316 directories :
1417 - ${TRAVIS_BUILD_DIR}/deps/cmake
1518 - ${TRAVIS_BUILD_DIR}/deps/protobuf
16- install :
19+
20+ # Handle dependencies in separate directory.
21+ before_install :
1722 - DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
18- - mkdir -p "${DEPS_DIR}" && cd "${DEPS_DIR}"
23+ - mkdir -p "${DEPS_DIR}"
24+ - cd "${DEPS_DIR}"
1925
26+ install :
2027 # Install a recent version of CMake
2128 - |
2229 CMAKE_URL="https://cmake.org/files/v3.7/cmake-3.7.2-Linux-x86_64.tar.gz"
@@ -32,9 +39,13 @@ install:
3239 cd protobuf
3340 ./configure --prefix=/usr
3441 make
35- make install
42+ sudo make install
43+
44+ # Change directory back to default build directory.
3645before_script :
3746 - cd "${TRAVIS_BUILD_DIR}"
47+
48+ # Run the build script.
3849script :
3950 - mkdir build
4051 - cd build
You can’t perform that action at this time.
0 commit comments