Skip to content

Commit 9d98ce1

Browse files
committed
Merge pull request #4395 from jenshnielsen/travis_docs_fixes
TST : Travis docs fixes
2 parents 6fd57d7 + 7e7800f commit 9d98ce1

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

.travis.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,23 +44,26 @@ matrix:
4444
env: BUILD_DOCS=true
4545

4646
install:
47-
- pip install -q --use-mirrors nose python-dateutil $NUMPY pep8 pyparsing pillow sphinx!=1.3.0
47+
- pip install -q nose python-dateutil $NUMPY pep8 pyparsing pillow sphinx!=1.3.0
4848

4949
# We manually install humor sans using the package from Ubuntu 14.10. Unfortunatly humor sans is not
5050
# availible in the Ubuntu version used by Travis but we can manually install the deb from a later
5151
# version since is it basically just a .ttf file
52+
# The current Travis Ubuntu image is to old to search .local/share/fonts so we store fonts in .fonts
5253

5354
# We install ipython to use the console highlighting. From IPython 3 this depends on jsonschema and misture.
5455
# Neihter is installed as a dependency of IPython since they are not used by the IPython console.
5556
- |
5657
if [[ $BUILD_DOCS == true ]]; then
57-
pip install numpydoc linkchecker ipython jsonschema mistune
58-
wget https://github.com/google/fonts/blob/master/ofl/felipa/Felipa-Regular.ttf?raw=true
58+
pip install numpydoc ipython jsonschema mistune
59+
pip install -q linkchecker
60+
wget https://github.com/google/fonts/blob/master/ofl/felipa/Felipa-Regular.ttf?raw=true -O Felipa-Regular.ttf
5961
wget http://mirrors.kernel.org/ubuntu/pool/universe/f/fonts-humor-sans/fonts-humor-sans_1.0-1_all.deb
6062
mkdir -p tmp
63+
mkdir -p ~/.fonts
6164
dpkg -x fonts-humor-sans_1.0-1_all.deb tmp
62-
cp tmp/usr/share/fonts/truetype/humor-sans/Humor-Sans.ttf ~/.local/share/fonts/
63-
cp Felipa-Regular.ttf ~/.local/share/fonts/
65+
cp tmp/usr/share/fonts/truetype/humor-sans/Humor-Sans.ttf ~/.fonts
66+
cp Felipa-Regular.ttf ~/.fonts
6467
fc-cache -f -v
6568
fi;
6669
- python setup.py install
@@ -94,12 +97,14 @@ after_failure:
9497
cd $TRAVIS_BUILD_DIR/../tmp_test_dir
9598
tar cjf result_images.tar.bz2 result_images
9699
travis-artifacts upload --path result_images.tar.bz2
97-
echo "The result images will only be uploaded if they are on the matplotlib/matplotlib repo - this is for security reasons to prevent arbitrary PRs echoing security details." else echo https://s3.amazonaws.com/matplotlib-test-results/artifacts/${TRAVIS_BUILD_NUMBER}/${TRAVIS_JOB_NUMBER}/result_images.tar.bz2
100+
echo https://s3.amazonaws.com/matplotlib-test-results/artifacts/${TRAVIS_BUILD_NUMBER}/${TRAVIS_JOB_NUMBER}/result_images.tar.bz2
101+
else
102+
echo "The result images will only be uploaded if they are on the matplotlib/matplotlib repo - this is for security reasons to prevent arbitrary PRs echoing security details."
98103
fi
99104

100105
after_success:
101106
|
102-
if [[ $TRAVIS_PULL_REQUEST == false && $BUILD_DOCS == true && $TRAVIS_BRANCH == 'master' ]]; then
107+
if [[ $TRAVIS_PULL_REQUEST == false && $TRAVIS_REPO_SLUG == 'matplotlib/matplotlib' && $BUILD_DOCS == true && $TRAVIS_BRANCH == 'master' ]]; then
103108
cd $TRAVIS_BUILD_DIR
104109
echo "Uploading documentation"
105110
openssl aes-256-cbc -K $encrypted_cc802e084cd0_key -iv $encrypted_cc802e084cd0_iv -in .travis/matplotlibDeployKey.enc -out .travis/matplotlibDeployKey -d

0 commit comments

Comments
 (0)