From 3a934cf66cf8f729636f04777e84f7c22240be0f Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 13 Sep 2017 12:26:22 +0100 Subject: [PATCH] Use sudo to update pip packages --- .travis.yml | 12 ++---------- scripts/travis/docs_setup.sh | 4 ++-- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4382e5514..dc6015395 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,6 @@ language: cpp +sudo: required +dist: trusty branches: only: @@ -28,27 +30,17 @@ matrix: include: # only build docs on linux - os: linux - dist: trusty - sudo: false env: DOCS_BUILD=1 - os: linux - dist: trusty - sudo: required env: LINUX_BUILD=1 compiler: gcc - os: linux - dist: trusty - sudo: required env: LINUX_BUILD=1 compiler: clang - os: linux - dist: trusty - sudo: required env: LINUX_BUILD=1 RELEASE_BUILD=1 compiler: clang - os: linux - dist: trusty - sudo: required env: ANDROID_BUILD=1 compiler: clang - os: osx diff --git a/scripts/travis/docs_setup.sh b/scripts/travis/docs_setup.sh index d766b5520..ca38ad8e0 100644 --- a/scripts/travis/docs_setup.sh +++ b/scripts/travis/docs_setup.sh @@ -1,5 +1,5 @@ #!/bin/sh set -ev -pip install --upgrade pip setuptools -pip install Sphinx sphinx-rtd-theme +sudo pip install --upgrade pip setuptools +sudo pip install Sphinx sphinx-rtd-theme