Skip to content

Commit

Permalink
Revert "CI report which doc files were likely affected (scikit-learn#…
Browse files Browse the repository at this point in the history
  • Loading branch information
amueller authored and jnothman committed Dec 9, 2016
1 parent 9811b3b commit b7a1ad2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
23 changes: 0 additions & 23 deletions build_tools/circle/build_doc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,26 +119,3 @@ python setup.py develop

# The pipefail is requested to propagate exit code
set -o pipefail && cd doc && make $MAKE_TARGET 2>&1 | tee ~/log.txt

cd -
set +o pipefail

affected_doc_paths() {
files=$(git diff --name-only origin/master...$CIRCLE_SHA1)
echo "$files" | grep ^doc/.*\.rst | sed 's/^doc\/\(.*\)\.rst$/\1.html/'
echo "$files" | grep ^examples/.*.py | sed 's/^\(.*\)\.py$/auto_\1.html/'
sklearn_files=$(echo "$files" | grep '^sklearn/')
grep -hlR -f<(echo "$sklearn_files" | sed 's/^/scikit-learn\/blob\/[a-z0-9]*\//') doc/_build/html/stable/modules/generated | cut -d/ -f5-
}

if [ -n "$CI_PULL_REQUEST" ]
then
echo "The following documentation files may have been changed by PR #$CI_PULL_REQUEST:"
affected=$(affected_doc_paths)
echo "$affected" | sed 's|^|* http://scikit-learn.org/circle?'$CIRCLE_BUILD_NUM'/|'
(
echo '<html><body><ul>'
echo "$affected" | sed 's|.*|<li><a href="&">&</a></li>|'
echo '</ul></body></html>'
) > 'doc/_build/html/stable/_changed.html'
fi
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from distutils.command.clean import clean as Clean
from pkg_resources import parse_version
import traceback
import subprocess

if sys.version_info[0] < 3:
import __builtin__ as builtins
Expand Down

0 comments on commit b7a1ad2

Please sign in to comment.