Skip to content

Commit a2804bf

Browse files
committed
Update the .travis.yml so that the correct Python and matplotlib versions are installed when Travis CI builds the documentation. This should fix issues with PyCall being able to call down to Matplotlib to build plots for the site.
1 parent 00972a7 commit a2804bf

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.travis.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,16 @@ jobs:
6262
### Documentation generation
6363
- stage: "Documentation"
6464
julia: 1.3
65-
python: 3.7
6665
os: linux
66+
dist: bionic
67+
install:
68+
- sudo apt-get update
69+
- sudo apt-get install -y python3.7 python3-pip python3-setuptools
70+
- pip3 install --upgrade pip
71+
- pip3 install --user matplotlib
72+
- julia --project=docs -e 'using Pkg; Pkg.instantiate(); \
73+
Pkg.add(PackageSpec(path=pwd()));'
74+
- julia --project=docs -e 'using Pkg; Pkg.build("PyCall");'
6775
script:
68-
- pip install --user matplotlib
69-
- julia --project=docs -e 'using Pkg; Pkg.instantiate(); Pkg.add(PackageSpec(path=pwd()))'
7076
- julia --project=docs --color=yes docs/make.jl
7177
after_success: skip

0 commit comments

Comments
 (0)