Skip to content

Commit fbd2555

Browse files
committed
Revert "Use dist Trusty"
This reverts commit 5e1bc09.
1 parent 05e2ab7 commit fbd2555

File tree

1 file changed

+29
-4
lines changed

1 file changed

+29
-4
lines changed

.travis.yml

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,40 @@
1-
dist: trusty
1+
# Source: https://github.com/boostorg/hana/blob/master/.travis.yml
2+
23
language: cpp
4+
sudo: true
35
compiler:
46
- clang
57
- gcc
68
addons:
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}"
1338
script:
1439
- mkdir build
1540
- cd build

0 commit comments

Comments
 (0)