-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy path.travis.yml
More file actions
54 lines (54 loc) · 2.77 KB
/
.travis.yml
File metadata and controls
54 lines (54 loc) · 2.77 KB
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
54
language: c
sudo: false
cache:
directories:
- ~/arduino_ide
- ~/.arduino15/packages/
git:
depth: false
quiet: true
env:
global:
- ARDUINO_IDE_VERSION="1.8.9"
before_install:
- source <(curl -SLs https://raw.githubusercontent.com/adafruit/travis-ci-arduino/master/install.sh)
install:
- arduino --install-library "ArduinoJson:6.11.3"
#- arduino --install-library "PJON:12.0"
# Use PJON master, not a release for now
- wget https://github.com/gioblu/PJON/archive/master.zip
- unzip master.zip
- rm master.zip
- sudo cp -R PJON-master $HOME/Arduino/libraries/PJON
# Use ReconnectingMqttClient master, not a release for now
- wget https://github.com/fredilarsen/ReconnectingMqttClient/archive/master.zip
- unzip master.zip
- rm master.zip
- sudo cp -R ReconnectingMqttClient-master $HOME/Arduino/libraries/ReconnectingMqttClient
# Put libraries where the Linux Makefile expects them
- mv PJON-master ../PJON
- mv ReconnectingMqttClient-master ../ReconnectingMqttClient
- cp -R $HOME/Arduino/libraries/ArduinoJson ..
script:
# Arduino based examples
- pushd examples/BlinkAdvanced >/dev/null && build_platform uno && popd >/dev/null
- pushd examples/BlinkSimple >/dev/null; build_platform uno; popd >/dev/null
- pushd examples/ModuleMasterHttp >/dev/null; build_platform mega2560; popd >/dev/null
- pushd examples/NetworkBlinkSimple >/dev/null; build_platform uno; popd >/dev/null
- pushd examples/SensorMonitor >/dev/null; build_platform uno; popd >/dev/null
- pushd examples/WebPage/ARDUINO_SWBB/LightController >/dev/null; build_platform uno; popd >/dev/null
- pushd examples/WebPage/ARDUINO_SWBB/ModuleMasterHttp >/dev/null; build_platform mega2560; popd >/dev/null
- pushd examples/WebPage/ARDUINO_SWBB/SensorMonitor >/dev/null; build_platform uno; popd >/dev/null
- pushd examples/WebPage/ARDUINO_SWBB/TestModuleMaster >/dev/null; build_platform uno; popd >/dev/null
- pushd examples/WebPage/ARDUINO_SWBB/ModuleInterfaceRGBSwitch >/dev/null; build_platform mega2560; popd >/dev/null
- pushd examples/WebPage/ESP8266_ESP32_DUDP >/dev/null; build_platform esp32; popd >/dev/null
# Linux examples
- pushd examples/WebPage/WINDOWS_LINUX_DUDP/GenericModuleMaster/GenericModuleMaster >/dev/null; make; popd >/dev/null
- pushd examples/WebPage/WINDOWS_LINUX_DUDP/ModuleMasterHttp/ModuleMasterHttp >/dev/null; make; popd >/dev/null
- pushd examples/WebPage/WINDOWS_LINUX_DUDP/TestModuleMaster/TestModuleMaster >/dev/null; make; popd >/dev/null
- pushd examples/WebPage/WINDOWS_LINUX_ETCP/ModuleMasterHttp/ModuleMasterHttp >/dev/null; make; popd >/dev/null
- pushd examples/WebPage/WINDOWS_LINUX_LF/GenericModuleMasterMqtt/GenericModuleMasterMqtt >/dev/null; make; popd >/dev/null
notifications:
email:
on_success: change
on_failure: change