33# - https://cirrus-ci.org/guide/writing-tasks/#environment-variables
44# - https://cirrus-ci.org/guide/tips-and-tricks/#sharing-configuration-between-tasks
55# - https://cirrus-ci.org/guide/linux/
6- # - https://cirrus-ci.org/guide/macOS/
7- # - https://cirrus-ci.org/guide/windows/
86# - https://hub.docker.com/_/gcc/
97# - https://hub.docker.com/_/python/
108
119#
1210# Global defaults.
1311#
1412container :
15- image : python:3.8
13+ image : gcc:latest
1614 cpu : 2
1715 memory : 4G
1816
@@ -84,6 +82,7 @@ linux_task_template: &LINUX_TASK_TEMPLATE
8482 - echo "${CIRRUS_TASK_NAME}"
8583 - echo "${NOX_CACHE_BUILD}"
8684
85+
8786#
8887# YAML alias for compute credits.
8988#
@@ -113,6 +112,10 @@ lint_task:
113112 only_if : ${SKIP_LINT_TASK} == ""
114113 << : *CREDITS_TEMPLATE
115114 auto_cancellation : true
115+ container :
116+ image : python:3.8
117+ cpu : 2
118+ memory : 4G
116119 name : " ${CIRRUS_OS}: flake8 and black"
117120 pip_cache :
118121 folder : ~/.cache/pip
@@ -141,10 +144,6 @@ test_minimal_task:
141144 env :
142145 PY_VER : 3.8
143146 name : " ${CIRRUS_OS}: py${PY_VER} tests (minimal)"
144- container :
145- image : gcc:latest
146- cpu : 2
147- memory : 4G
148147 << : *LINUX_TASK_TEMPLATE
149148 tests_script :
150149 - export CONDA_OVERRIDE_LINUX="$(uname -r | cut -d'+' -f1)"
@@ -187,14 +186,9 @@ test_full_task:
187186gallery_task :
188187 only_if : ${SKIP_GALLERY_TASK} == "" && ${SKIP_ALL_DOC_TASKS} == ""
189188 << : *CREDITS_TEMPLATE
190- matrix :
191- env :
192- PY_VER : 3.8
189+ env :
190+ PY_VER : 3.8
193191 name : " ${CIRRUS_OS}: py${PY_VER} doc tests (gallery)"
194- container :
195- image : gcc:latest
196- cpu : 2
197- memory : 4G
198192 << : *IRIS_TEST_DATA_TEMPLATE
199193 << : *LINUX_TASK_TEMPLATE
200194 tests_script :
@@ -211,17 +205,11 @@ gallery_task:
211205doctest_task :
212206 only_if : ${SKIP_DOCTEST_TASK} == "" && ${SKIP_ALL_DOC_TASKS} == ""
213207 << : *CREDITS_TEMPLATE
214- matrix :
215- env :
216- PY_VER : 3.8
217- name : " ${CIRRUS_OS}: py${PY_VER} doc tests"
218- container :
219- image : gcc:latest
220- cpu : 2
221- memory : 4G
222208 env :
209+ PY_VER : 3.8
223210 MPL_RC_DIR : ${HOME}/.config/matplotlib
224211 MPL_RC_FILE : ${HOME}/.config/matplotlib/matplotlibrc
212+ name : " ${CIRRUS_OS}: py${PY_VER} doc tests"
225213 << : *IRIS_TEST_DATA_TEMPLATE
226214 << : *LINUX_TASK_TEMPLATE
227215 tests_script :
@@ -241,17 +229,11 @@ doctest_task:
241229linkcheck_task :
242230 only_if : ${SKIP_LINKCHECK_TASK} == "" && ${SKIP_ALL_DOC_TASKS} == ""
243231 << : *CREDITS_TEMPLATE
244- matrix :
245- env :
246- PY_VER : 3.8
247- name : " ${CIRRUS_OS}: py${PY_VER} doc link check"
248- container :
249- image : gcc:latest
250- cpu : 2
251- memory : 4G
252232 env :
233+ PY_VER : 3.8
253234 MPL_RC_DIR : ${HOME}/.config/matplotlib
254235 MPL_RC_FILE : ${HOME}/.config/matplotlib/matplotlibrc
236+ name : " ${CIRRUS_OS}: py${PY_VER} doc link check"
255237 << : *LINUX_TASK_TEMPLATE
256238 tests_script :
257239 - export CONDA_OVERRIDE_LINUX="$(uname -r | cut -d'+' -f1)"
0 commit comments