8000 Test sphinx extensions doctests only on Circle. · scikit-learn/scikit-learn@8328a7f · GitHub
[go: up one dir, main page]

Skip to content

Commit 8328a7f

Browse files
committed
Test sphinx extensions doctests only on Circle.
Some sphinx extensions have dependencies, e.g. sphinx.
1 parent a658648 commit 8328a7f

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

build_tools/circle/build_doc.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ then
107107
wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh \
108108
-O miniconda.sh
109109
fi
110-
chmod +x miniconda.sh && ./miniconda.sh -b -p $HOME/miniconda
110+
chmod +x miniconda.sh && ./miniconda.sh -b -p $MINICONDA_PATH
111111
cd ..
112-
export PATH="$HOME/miniconda/bin:$PATH"
112+
export PATH="$MINICONDA_PATH/bin:$PATH"
113113
conda update --yes --quiet conda
114114
popd
115115

circle.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ checkout:
44

55
machine:
66
environment:
7+
MINICONDA_PATH: $HOME/miniconda
78
CONDA_ENV_NAME: testenv
89

910
dependencies:
@@ -16,9 +17,13 @@ dependencies:
1617
override:
1718
- ./build_tools/circle/build_doc.sh:
1819
timeout: 3600 # seconds
20+
1921
test:
2022
override:
21-
- source activate $CONDA_ENV_NAME && make test-sphinxext
23+
- |
24+
export PATH="$MINICONDA_PATH/bin:$PATH"
25+
source activate $CONDA_ENV_NAME
26+
make test-sphinxext
2227
deployment:
2328
push:
2429
branch: /^master$|^[0-9]+\.[0-9]+\.X$/

0 commit comments

Comments
 (0)
0