File tree 1 file changed +11
-1
lines changed 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 14
14
# #############################################################################
15
15
16
16
dist : trusty
17
- sudo : false
17
+ sudo : true
18
18
19
19
env :
20
20
global :
@@ -39,6 +39,16 @@ matrix:
39
39
- if [ ! -d "$HOME/arduino_ide" ] ; then mkdir "$HOME/arduino_ide" ; fi
40
40
- if [ ! -d "$HOME/$ARDUINO_IDE" ] ; then { echo "fetch" && wget https://downloads.arduino.cc/arduino-${IDE_VERSION}-linux64.tar.xz && echo "untar" && tar xf arduino-${IDE_VERSION}-linux64.tar.xz && echo "move" && mv -f arduino-${IDE_VERSION} $HOME/${ARDUINO_IDE} ; } || { echo "IDE install failed"; exit 1; } ; else echo "IDE already installed" ; fi
41
41
- export PATH="$HOME/${ARDUINO_IDE}:$PATH"
42
+
43
+ # Arduino IDE adds a lot of noise caused by network traffic, firewall it off
44
+ # (see https://github.com/per1234/arduino-ci-script/issues/1#issuecomment-504158113)
45
+ - sudo iptables -P INPUT DROP
46
+ - sudo iptables -P FORWARD DROP
47
+ - sudo iptables -P OUTPUT ACCEPT
48
+ - sudo iptables -A INPUT -i lo -j ACCEPT
49
+ - sudo iptables -A OUTPUT -o lo -j ACCEPT
50
+ - sudo iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
51
+
42
52
#
43
53
# arduino_lorawan looks for project_config things, so we must put
44
54
# things in the canonical place
You can’t perform that action at this time.
0 commit comments