forked from SouthEugeneRoboticsTeam/ursa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
27 lines (27 loc) · 893 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
language: python
python:
- "3.7"
cache:
directories:
- ~/.arduino15/packages/
before_install:
- export INSTALL_PLATFORMS="esp32"
- source <(curl -SLs https://raw.githubusercontent.com/adafruit/travis-ci-arduino/master/install.sh)
# Arduino IDE adds a lot of noise caused by network traffic, trying to firewall it off
- sudo iptables -P INPUT DROP
- sudo iptables -P FORWARD DROP
- sudo iptables -P OUTPUT ACCEPT
- sudo iptables -A INPUT -i lo -j ACCEPT
- sudo iptables -A OUTPUT -o lo -j ACCEPT
- sudo iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
install:
- arduino --install-library "PID"
- pip install -U cpplint pyserial
script:
- build_platform esp32
# Lint code, but don't error until we have a chance to fix more of the linting issues
- make lint || true
notifications:
email:
on_success: change
on_failure: change