Skip to content

Commit f277ce1

Browse files
committed
Workaround for Arduino mDNS output noise.
See https://forum.arduino.cc/index.php?topic=469428.0 See per1234/arduino-ci-script#1 Arduino IDE adds a lot of noise caused by network traffic (mDNS?), because it's listening for network-attached devices. Attempt to firewall it in the TravisCI environment to prevent polluted error logs....
1 parent 1bfc682 commit f277ce1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.travis.yml

+12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
sudo: required
12
language: c
23
dist: xenial
34
git:
@@ -52,6 +53,17 @@ install:
5253
- rm -r $BSP_PATH/*
5354
- ln -s $TRAVIS_BUILD_DIR $BSP_PATH/$BSP_VERSION
5455
- arduino --install-library "Adafruit NeoPixel","Adafruit NeoMatrix","Adafruit GFX Library","Adafruit SSD1306","MIDI Library","Adafruit ILI9341","Adafruit HX8357 Library"
56+
# TODO: find way to filter out the noisy mDNS output from arduino IDE...
57+
# See https://forum.arduino.cc/index.php?topic=469428.0
58+
# See https://github.com/per1234/arduino-ci-script/issues/1
59+
# Arduino IDE adds a lot of noise caused by network traffic (mDNS?)
60+
# The following lines attempt to firewall it to prevent polluted error logs....
61+
- sudo iptables -P INPUT DROP
62+
- sudo iptables -P FORWARD DROP
63+
- sudo iptables -P OUTPUT ACCEPT
64+
- sudo iptables -A INPUT -i lo -j ACCEPT
65+
- sudo iptables -A OUTPUT -o lo -j ACCEPT
66+
- sudo iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
5567

5668
before_script:
5769

0 commit comments

Comments
 (0)