Skip to content

Commit 883fef3

Browse files
committed
Add sudo support for Travis
1 parent 8c67851 commit 883fef3

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

.travis.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
#
33
# Commits that have [ci skip] anywhere in the commit messages are ignored by Travis CI.
44

5+
# NOTE: Travis will use a non docker based infrastructure
6+
# NOTE: because of pymodbus
7+
sudo: required
8+
59
language: python
610

711
branches:
@@ -12,17 +16,16 @@ python:
1216
- "2.6"
1317
- "2.7"
1418

15-
# travis-ci automatically preinstalls
16-
#
19+
# NOTE: Travis-ci automatically preinstalls
1720
# pytest
1821
# nose
1922
# mock
2023

21-
# travis-ci automatically installs
24+
# NOTE: Travis-ci automatically runs
2225
#
2326
# pip install -r requirements.txt
2427

25-
# TODO: add mininet-based tests
28+
# TODO: Add mininet-based tests
2629
script: make tests-travis
2730

2831
notifications:

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
MININET = sudo mn
55

66
PYTHON = sudo python
7-
PYTHON_OPTS =
7+
PYTHON_OPTS =
88

99
# regex testMatch: (?:^|[b_.-])[Tt]est)
1010
# --exe: include also executable files
@@ -14,9 +14,10 @@ PYTHON_OPTS =
1414
# TODO: add testing conditionals for verbosity, doctest plugin and coverage plugin
1515
# http://web.mit.edu/gnu/doc/html/make_7.html
1616

17-
# sudo because of mininet
17+
# NOTE: sudo because of pymodbus and mininet
1818
TESTER = sudo nosetests
19-
TESTER_TRAVIS = nosetests
19+
# NOTE: sudo because of pymodbus
20+
TESTER_TRAVIS = sudo nosetests
2021
TESTER_OPTS = -s -v --exe --rednose
2122
TESTER_OPTS_COV_HTML = $(TESTER_OPTS) --with-coverage --cover-html
2223

0 commit comments

Comments
 (0)