Skip to content

Commit b9c1a1e

Browse files
committed
Remove need for sudo
Not using sudo is a good thing: it reduces boot time from 20-52s to 1-6s. See: https://docs.travis-ci.com/user/ci-environment/
1 parent 69d1687 commit b9c1a1e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.travis.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
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-
63
# Use C++ build environment.
74
language: cpp
85

@@ -32,8 +29,8 @@ install:
3229
# Install a recent version of the Protobuf
3330
- |
3431
PROTOBUF_URL="https://github.com/google/protobuf/releases/download/v3.2.0/protobuf-cpp-3.2.0.tar.gz"
35-
if [ ! -f ${DEPS_DIR}/protobuf/src/.libs/protoc ] ; then mkdir -p protobuf ; travis_retry wget --no-check-certificate --quiet -O - ${PROTOBUF_URL} | tar --strip-components=1 -xz -C protobuf ; cd protobuf ; ./configure --prefix=/usr ; make ; else cd protobuf ; fi
36-
sudo make install
32+
if [ ! -f ${DEPS_DIR}/protobuf/src/.libs/protoc ] ; then mkdir -p protobuf ; travis_retry wget --no-check-certificate --quiet -O - ${PROTOBUF_URL} | tar --strip-components=1 -xz -C protobuf ; cd protobuf ; ./configure --prefix=/usr/local ; make ; else cd protobuf ; fi
33+
make install
3734
3835
# Change directory back to default build directory.
3936
before_script:

0 commit comments

Comments
 (0)