Skip to content

Commit 5e1bc09

Browse files
committed
Use dist Trusty
1 parent 619f0ca commit 5e1bc09

File tree

1 file changed

+4
-29
lines changed

1 file changed

+4
-29
lines changed

.travis.yml

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,15 @@
1-
# Source: https://github.com/boostorg/hana/blob/master/.travis.yml
2-
1+
dist: trusty
32
language: cpp
4-
sudo: true
53
compiler:
64
- clang
75
- gcc
86
addons:
97
apt:
108
sources:
119
- ubuntu-toolchain-r-test
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}"
10+
package:
11+
- cmake
12+
- protobuf
3813
script:
3914
- mkdir build
4015
- cd build

0 commit comments

Comments
 (0)