Skip to content

Commit 7f35fd1

Browse files
committed
Change sudo apt-get installs to travis.yml packages
1 parent 53e6802 commit 7f35fd1

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.continuous-integration/travis/setup_environment_linux.sh

+2-6
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,8 @@ chmod +x miniconda.sh
77
export PATH=/home/travis/miniconda/bin:$PATH
88
conda update --yes conda
99

10-
# Install non-Python dependencies for documentation
11-
if [[ $SETUP_CMD == build_sphinx* ]]
12-
then
13-
sudo apt-get update
14-
sudo apt-get install graphviz texlive-latex-extra dvipng
15-
fi
10+
# Installation of non-Python dependencies for documentation is now
11+
# in .travis.yml
1612

1713
# Install Python dependencies
1814
source "$( dirname "${BASH_SOURCE[0]}" )"/setup_dependencies_common.sh

.travis.yml

+8
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ os:
99
# Setting sudo to false opts in to Travis-CI container-based builds.
1010
sudo: false
1111

12+
# The apt packages below are needed for sphinx builds, which can no longer
13+
# be installed with sudo apt-get.
14+
addons:
15+
apt:
16+
packages:
17+
- graphviz
18+
- texlive-latex-extra
19+
- dvipng
1220
env:
1321
global:
1422
# Set defaults to avoid repeating in most cases

0 commit comments

Comments
 (0)