Skip to content

Commit 5277d27

Browse files
authored
fix osx build (#112)
1 parent 91da06d commit 5277d27

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.travis/before_install.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
set -x
44

55
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
6-
brew install snap7 python3
6+
brew install snap7
7+
pip install nose mock coverage
8+
pip3 install nose mock coverage
79
fi
810

911
if [ "$TRAVIS_OS_NAME" = "linux" ]; then

.travis/script.sh

+6-5
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ set -x
55
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
66
NOSETESTS=${VIRTUAL_ENV}/bin/nosetests
77
else
8-
NOSETESTS=/usr/local/bin/nosetests
8+
NOSETESTS="python -m nose"
99
fi
1010

11+
PYTHONPATH=.
12+
13+
${NOSETESTS} --with-coverage test/test_server.py
14+
${NOSETESTS} --with-coverage test/test_client.py
15+
${NOSETESTS} --with-coverage test/test_util.py
1116
sudo ${NOSETESTS} --with-coverage test/test_partner.py
12-
sudo chown travis .coverage
13-
nosetests --with-coverage test/test_server.py
14-
nosetests --with-coverage test/test_client.py
15-
nosetests --with-coverage test/test_util.py

0 commit comments

Comments
 (0)