-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy path.travis.yml
53 lines (48 loc) · 1.85 KB
/
.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
language: c++
dist: bionic
addons:
apt:
packages:
- wget
- python3
before_install:
- echo `pwd`
- wget https://www.arduino.cc/download.php?f=/arduino-1.8.15-linux64.tar.xz -O arduino.tar.xz
- tar xf arduino.tar.xz
- cd arduino-1.8.15
- export PATH=$PATH:`pwd`
- cd ..
# the following iptables changes are just to suppress log-warnings where the arduinp-ide tries to make network connections
- 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
before_script:
- echo ${TRAVIS_BUILD_DIR}
- cd ${TRAVIS_BUILD_DIR}/examples
- echo `pwd`
- for d in */; do cp ../src/* ${d}/; done
jobs:
include:
- stage:
name: Build for ESP8266
install:
- echo `pwd`
- echo $PATH
- arduino --pref boardsmanager.additional.urls="http://arduino.esp8266.com/stable/package_esp8266com_index.json" --install-boards esp8266:esp8266
- arduino --install-library ArduinoJson:6.19.4
script:
- cd ${TRAVIS_BUILD_DIR}/examples
- for d in */; do arduino --pref compiler.cpp.extra_flags="-Wall -Wextra -Werror" --board esp8266:esp8266:d1 --verify ${d}*.ino; done
- stage:
name: Build for ESP32
install:
- echo `pwd`
- echo $PATH
- arduino --pref boardsmanager.additional.urls="https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json" --install-boards esp32:esp32
- arduino --install-library ArduinoJson:6.19.4
script:
- cd ${TRAVIS_BUILD_DIR}/examples
- for d in */; do arduino --pref compiler.cpp.extra_flags="-Wall -Wextra -Werror" --board esp32:esp32:WeMosBat --verify ${d}*.ino; done