Skip to content

Commit

Permalink
download third party dependencies to home dir for caching
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Xu committed Jan 23, 2014
1 parent 837e649 commit 1fc19ae
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions jenkins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ python -c "import nltk; nltk.download('all')" || echo "NLTK data download failed
pip install --upgrade -r pip-req.txt --allow-external matplotlib --allow-unverified matplotlib

#download external dependencies
pushd ${HOME}
[[ ! -d 'third' ]] && mkdir 'third'
pushd 'third'

Expand All @@ -33,6 +34,7 @@ if [[ ! -d ${stanford_parser_package_name} ]]; then
ln -s ${stanford_parser_package_name} 'stanford-postagger'
fi

popd
popd

#coverage
Expand Down
12 changes: 6 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,14 @@ commands = python runtests.py []
basepython = python2.6
commands = {toxinidir}/jenkins.sh
setenv =
STANFORD_MODELS = {toxinidir}/third/stanford-parser/
STANFORD_PARSER = {toxinidir}/third/stanford-parser/
STANFORD_POSTAGGER = {toxinidir}/third/stanford-postagger/
STANFORD_MODELS = {homedir}/third/stanford-parser/
STANFORD_PARSER = {homedir}/third/stanford-parser/
STANFORD_POSTAGGER = {homedir}/third/stanford-postagger/

[testenv:py32-jenkins]
basepython = python3.2
commands = {toxinidir}/jenkins.sh
setenv =
STANFORD_MODELS = {toxinidir}/third/stanford-parser/
STANFORD_PARSER = {toxinidir}/third/stanford-parser/
STANFORD_POSTAGGER = {toxinidir}/third/stanford-postagger/
STANFORD_MODELS = {homedir}/third/stanford-parser/
STANFORD_PARSER = {homedir}/third/stanford-parser/
STANFORD_POSTAGGER = {homedir}/third/stanford-postagger/

0 comments on commit 1fc19ae

Please sign in to comment.