Skip to content

Commit

Permalink
fix osx build (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
gijzelaerr authored Aug 2, 2018
1 parent 91da06d commit 5277d27
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .travis/before_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
set -x

if [ "$TRAVIS_OS_NAME" = "osx" ]; then
brew install snap7 python3
brew install snap7
pip install nose mock coverage
pip3 install nose mock coverage
fi

if [ "$TRAVIS_OS_NAME" = "linux" ]; then
Expand Down
11 changes: 6 additions & 5 deletions .travis/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ set -x
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
NOSETESTS=${VIRTUAL_ENV}/bin/nosetests
else
NOSETESTS=/usr/local/bin/nosetests
NOSETESTS="python -m nose"
fi

PYTHONPATH=.

${NOSETESTS} --with-coverage test/test_server.py
${NOSETESTS} --with-coverage test/test_client.py
${NOSETESTS} --with-coverage test/test_util.py
sudo ${NOSETESTS} --with-coverage test/test_partner.py
sudo chown travis .coverage
nosetests --with-coverage test/test_server.py
nosetests --with-coverage test/test_client.py
nosetests --with-coverage test/test_util.py

0 comments on commit 5277d27

Please sign in to comment.