@@ -8,7 +8,7 @@ version: 2
8
8
# Define some common steps as YAML anchors.
9
9
#
10
10
11
- apt-run : &apt
11
+ apt-run : &apt-install
12
12
name : Install apt packages
13
13
command : |
14
14
sudo apt-get install \
@@ -27,8 +27,8 @@ apt-run: &apt
27
27
libgeos-dev \
28
28
otf-freefont
29
29
30
- humor-sans- run : &humor-sans
31
- name : Install Humor Sans
30
+ fonts- run : &fonts-install
31
+ name : Install custom fonts
32
32
# We manually install Humor-Sans using the package from Ubuntu 14.10.
33
33
# Unfortunately humor sans is not available in the Ubuntu version used by
34
34
# CircleCI but we can manually install the deb from a later version since
@@ -47,25 +47,25 @@ humor-sans-run: &humor-sans
47
47
fi
48
48
fc-cache -f -v
49
49
50
- pip-run : &pip
50
+ pip-run : &pip-install
51
51
# Upgrade pip and setuptools and wheel to get as clean an install as possible
52
52
name : Upgrade pip, setuptools, wheel
53
53
command : |
54
54
pip install --upgrade --user pip
55
55
pip install --upgrade --user wheel
56
56
pip install --upgrade --user setuptools
57
57
58
- deps-install : &deps
58
+ deps-run : &deps-install
59
59
name : Install Python dependencies
60
60
command : |
61
61
pip install --user python-dateutil numpy${NUMPY_VERSION} pyparsing!=2.1.6 cycler codecov coverage sphinx pillow
62
62
pip install --user -r doc-requirements.txt
63
63
64
- mpl-install : &mpl
65
- name : Install matplotlib
64
+ mpl-run : &mpl-install
65
+ name : Install Matplotlib
66
66
command : pip install --user -ve .
67
67
68
- build- doc : &doc
68
+ doc-run : &doc-build
69
69
name : Build documentation
70
70
command : python make.py html
71
71
working_directory : doc
@@ -76,44 +76,44 @@ build-doc: &doc
76
76
#
77
77
78
78
jobs :
79
- " python-3.5 " :
79
+ docs-python35 :
80
80
docker :
81
81
- image : circleci/python:3.5
82
82
steps :
83
83
- checkout
84
84
85
- - run : *apt
86
- - run : *humor-sans
87
- - run : *pip
85
+ - run : *apt-install
86
+ - run : *fonts-install
87
+ - run : *pip-install
88
88
89
- - run : *deps
90
- - run : *mpl
89
+ - run : *deps-install
90
+ - run : *mpl-install
91
91
92
- - run : *doc
92
+ - run : *doc-build
93
93
94
94
- store_artifacts :
95
95
path : doc/build/html
96
96
97
- " python-2.7 " :
97
+ docs-python27 :
98
98
docker :
99
99
- image : circleci/python:2.7
100
100
steps :
101
101
- checkout
102
102
103
- - run : *apt
104
- - run : *humor-sans
105
- - run : *pip
103
+ - run : *apt-install
104
+ - run : *fonts-install
105
+ - run : *pip-install
106
106
107
107
- run :
108
- << : *deps
108
+ << : *deps-install
109
109
environment :
110
110
NUMPY_VERSION : " ==1.7.1"
111
111
# Linkchecker only works with python 2.7 for the time being.
112
112
# Linkchecker is currently broken with requests 2.10.0 so force an earlier version.
113
113
- run : pip install --user $PRE requests==2.9.2 linkchecker
114
- - run : *mpl
114
+ - run : *mpl-install
115
115
116
- - run : *doc
116
+ - run : *doc-build
117
117
118
118
# We don't build the LaTeX docs here, so linkchecker will complain
119
119
- run : touch doc/build/html/Matplotlib.pdf
@@ -136,5 +136,5 @@ workflows:
136
136
version : 2
137
137
build :
138
138
jobs :
139
- - " python-3.5 "
140
- - " python-2.7 "
139
+ - docs-python35
140
+ - docs-python27
0 commit comments