forked from ClusterDuck-Protocol/ClusterDuck-Protocol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
79 lines (77 loc) · 4.37 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
language: generic
dist: bionic
env:
global:
- CLI_VERSION=master
matrix:
- BOARD="esp32:esp32:heltec_wifi_lora_32_V2"
- BOARD="esp32:esp32:t-beam"
before_install:
- sudo add-apt-repository --yes ppa:nnstreamer/ppa
- sudo apt-get update
- sudo apt-get -y install cppcheck
- cppcheck --version
- cppcheck --force --error-exitcode=1 src
- curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh -s 0.17.0
- export PATH=$PATH:$PWD/bin/
- arduino-cli core update-index --additional-urls https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
- if [[ "$BOARD" =~ "esp32:esp32:" ]]; then
arduino-cli core install esp32:esp32 --additional-urls https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json;
fi
- arduino-cli config init
- arduino-cli config set library.enable_unsafe_install true
- arduino-cli lib install --git-url https://github.com/Call-for-Code/ClusterDuck-Protocol.git
- arduino-cli lib install --git-url https://github.com/contrem/arduino-timer.git
- arduino-cli lib install --git-url https://github.com/jgromes/RadioLib.git
- arduino-cli lib install --git-url https://github.com/bblanchon/ArduinoJson.git
- arduino-cli lib install --git-url https://github.com/me-no-dev/AsyncTCP
- arduino-cli lib install --git-url https://github.com/ThingPulse/esp8266-oled-ssd1306
- arduino-cli lib install --git-url https://github.com/me-no-dev/ESPAsyncWebServer
- arduino-cli lib install --git-url https://github.com/olikraus/U8g2_Arduino.git
- arduino-cli lib install --git-url https://github.com/bakercp/CRC32.git
- arduino-cli lib install --git-url https://github.com/adafruit/Adafruit_Sensor
- arduino-cli lib install --git-url https://github.com/knolleary/pubsubclient.git
- arduino-cli lib install --git-url https://github.com/adafruit/Adafruit_BMP085_Unified
- arduino-cli lib install --git-url https://github.com/luciansabo/GP2YDustSensor.git
- arduino-cli lib install --git-url https://github.com/adafruit/DHT-sensor-library
- arduino-cli lib install --git-url https://github.com/adafruit/Adafruit_BMP280_Library
- arduino-cli lib install --git-url https://github.com/adafruit/Adafruit_BusIO
- arduino-cli lib install --git-url https://github.com/miguel5612/MQSensorsLib.git
- arduino-cli lib install --git-url https://github.com/FastLED/FastLED.git
- arduino-cli lib install --git-url https://github.com/mikalhart/IridiumSBD.git
- arduino-cli lib install --git-url https://github.com/lewisxhe/AXP202X_Library
- arduino-cli lib install --git-url https://github.com/mikalhart/TinyGPSPlus.git
- arduino-cli lib install --git-url https://github.com/Project-Owl/Crypto.git
- buildExampleSketch() { arduino-cli compile -t -b $BOARD $PWD/examples/$1/$2/$2.ino; }
script:
- buildExampleSketch 1.Ducks DuckLink
- buildExampleSketch 1.Ducks MamaDuck
- buildExampleSketch 1.Ducks PapaDuck
- buildExampleSketch 1.Ducks DetectorDuck
- buildExampleSketch 2.Custom-Mama-Example Custom-Mama-Example
- buildExampleSketch 2.Custom-Mama-Example Custom-Portal-Example
- buildExampleSketch 2.Custom-Mama-Example Custom-Mama-Detect
- buildExampleSketch 3.Sensor-Examples BMP180Example
- buildExampleSketch 3.Sensor-Examples BMP280Example
- buildExampleSketch 3.Sensor-Examples DHT11Example
- buildExampleSketch 3.Sensor-Examples DustSensorExample
- buildExampleSketch 3.Sensor-Examples MQ7Example
- buildExampleSketch 3.Sensor-Examples WS2812Example
- if [[ "$BOARD" != "esp32:esp32:t-beam" ]];
then buildExampleSketch 4.Ble-Duck-App Ble-Duck-App;
fi
- buildExampleSketch 5.Papa-Iridium-Example Papa-DishDuck
- buildExampleSketch 5.Papa-Iridium-Example Papa-DishDuck-WiFi
- buildExampleSketch 6.PaPi-DMS-Lite-Examples PapiDuckExample-wifi
- buildExampleSketch 6.PaPi-DMS-Lite-Examples Serial-PaPiDuckExample
- if [[ "$BOARD" != "esp32:esp32:heltec_wifi_lora_32_V2" ]];
then buildExampleSketch 7.TTGO-TBeam-Examples TTGO-Telemetry;
fi
- if [[ "$BOARD" != "esp32:esp32:heltec_wifi_lora_32_V2" ]];
then buildExampleSketch 7.TTGO-TBeam-Examples TTGOGPSExample;
fi
- if [[ "$BOARD" != "esp32:esp32:heltec_wifi_lora_32_V2" ]];
then buildExampleSketch 7.TTGO-TBeam-Examples TTGOAPX-Example;
fi
- buildExampleSketch 8.Encryption DecryptionPapaDuck
- buildExampleSketch 9.Telemetry Papa-Downtime-Counter