Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3a5e3ee

Browse files
committed
ci: Rename CircleCI build names to be clearer.
Add 'doc-' prefix so that it will be clear on the GitHub status list what these builds are doing.
1 parent f8d03fd commit 3a5e3ee

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

.circleci/config.yml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ version: 2
88
# Define some common steps as YAML anchors.
99
#
1010

11-
apt-run: &apt
11+
apt-run: &apt-install
1212
name: Install apt packages
1313
command: |
1414
sudo apt-get install \
@@ -27,8 +27,8 @@ apt-run: &apt
2727
libgeos-dev \
2828
otf-freefont
2929
30-
humor-sans-run: &humor-sans
31-
name: Install Humor Sans
30+
fonts-run: &fonts-install
31+
name: Install custom fonts
3232
# We manually install Humor-Sans using the package from Ubuntu 14.10.
3333
# Unfortunately humor sans is not available in the Ubuntu version used by
3434
# CircleCI but we can manually install the deb from a later version since
@@ -47,25 +47,25 @@ humor-sans-run: &humor-sans
4747
fi
4848
fc-cache -f -v
4949
50-
pip-run: &pip
50+
pip-run: &pip-install
5151
# Upgrade pip and setuptools and wheel to get as clean an install as possible
5252
name: Upgrade pip, setuptools, wheel
5353
command: |
5454
pip install --upgrade --user pip
5555
pip install --upgrade --user wheel
5656
pip install --upgrade --user setuptools
5757
58-
deps-install: &deps
58+
deps-run: &deps-install
5959
name: Install Python dependencies
6060
command: |
6161
pip install --user python-dateutil numpy${NUMPY_VERSION} pyparsing!=2.1.6 cycler codecov coverage sphinx pillow
6262
pip install --user -r doc-requirements.txt
6363
64-
mpl-install: &mpl
65-
name: Install matplotlib
64+
mpl-run: &mpl-install
65+
name: Install Matplotlib
6666
command: pip install --user -ve .
6767

68-
build-doc: &doc
68+
doc-run: &doc-build
6969
name: Build documentation
7070
command: python make.py html
7171
working_directory: doc
@@ -76,44 +76,44 @@ build-doc: &doc
7676
#
7777

7878
jobs:
79-
"python-3.5":
79+
docs-python35:
8080
docker:
8181
- image: circleci/python:3.5
8282
steps:
8383
- checkout
8484

85-
- run: *apt
86-
- run: *humor-sans
87-
- run: *pip
85+
- run: *apt-install
86+
- run: *fonts-install
87+
- run: *pip-install
8888

89-
- run: *deps
90-
- run: *mpl
89+
- run: *deps-install
90+
- run: *mpl-install
9191

92-
- run: *doc
92+
- run: *doc-build
9393

9494
- store_artifacts:
9595
path: doc/build/html
9696

97-
"python-2.7":
97+
docs-python27:
9898
docker:
9999
- image: circleci/python:2.7
100100
steps:
101101
- checkout
102102

103-
- run: *apt
104-
- run: *humor-sans
105-
- run: *pip
103+
- run: *apt-install
104+
- run: *fonts-install
105+
- run: *pip-install
106106

107107
- run:
108-
<<: *deps
108+
<<: *deps-install
109109
environment:
110110
NUMPY_VERSION: "==1.7.1"
111111
# Linkchecker only works with python 2.7 for the time being.
112112
# Linkchecker is currently broken with requests 2.10.0 so force an earlier version.
113113
- run: pip install --user $PRE requests==2.9.2 linkchecker
114-
- run: *mpl
114+
- run: *mpl-install
115115

116-
- run: *doc
116+
- run: *doc-build
117117

118118
# We don't build the LaTeX docs here, so linkchecker will complain
119119
- run: touch doc/build/html/Matplotlib.pdf
@@ -136,5 +136,5 @@ workflows:
136136
version: 2
137137
build:
138138
jobs:
139-
- "python-3.5"
140-
- "python-2.7"
139+
- docs-python35
140+
- docs-python27

0 commit comments

Comments
 (0)