Skip to content

Commit

Permalink
Some unit tests need pygraphviz installed too
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno P. Kinoshita committed Jan 3, 2019
1 parent 8968647 commit cce9d34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
include:
- stage: unit-test
install:
- .travis/install.sh unit-tests
- .travis/install.sh unit-tests functional-tests
script:
- pycodestyle --ignore=E402,W503,W504 lib/cylc lib/Jinja2Filters/*.py lib/parsec/*.py $(grep -l '#!.*\<python\>' bin/*)
- PYTHONPATH=$(pwd -P)/lib/ pytest lib/cylc/
Expand Down
4 changes: 3 additions & 1 deletion .travis/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ sudo apt-get install graphviz libgraphviz-dev python-gtk2-dev heirloom-mailx
# install dependencies required for running unit tests
if grep 'unit-tests' <<< "${args[@]}"; then
pip install EmPy pyopenssl pycodestyle pytest mock
fi

# install dependencies required for running functional tests
elif grep 'functional-tests' <<< "${args[@]}"; then
if grep 'functional-tests' <<< "${args[@]}"; then
# pygraphviz needs special treatment to avoid an error from "from . import release"
pip install EmPy pyopenssl
pip install pygraphviz \
Expand Down

0 comments on commit cce9d34

Please sign in to comment.