-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
64 lines (59 loc) · 2.73 KB
/
.gitlab-ci.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
variables:
GIT_SUBMODULE_STRATEGY: normal
platformio:
before_script:
- apt-get update -qq && apt-get install -y -qq python-pip
- pip install platformio
- platformio lib --global install ArduinoJson TaskScheduler PubSubClient ESPAsyncTCP AsyncTCP
script:
- platformio ci --lib="." --board=nodemcuv2 examples/mqttBridge/mqttBridge.ino
- platformio ci --lib="." --board=nodemcuv2 examples/basic/basic.ino -O "build_flags = -Werror"
- platformio ci --lib="." --board=nodemcuv2 examples/startHere/startHere.ino -O "build_flags = -Wall -Wextra -Wno-unused-parameter -Werror"
- platformio ci --lib="." --board=esp32dev examples/startHere/startHere.ino -O "build_flags = -std=c++14"
- platformio ci --lib="." --board=nodemcuv2 examples/bridge/bridge.ino -O "build_flags = -Werror"
- platformio ci --lib="." --board=nodemcuv2 examples/logServer/logServer.ino -O "build_flags = -Werror"
- platformio ci --lib="." --board=nodemcuv2 examples/logClient/logClient.ino -O "build_flags = -Werror"
- platformio ci --lib="." --lib="./examples/namedMesh/" --board=esp32dev examples/namedMesh/namedMesh.ino -O ""
catch_testing:
before_script:
- apt-get update -qq && apt-get install -y -qq cmake
- apt-get install libboost-system-dev -y -qq
- cmake . -DCMAKE_CXX_FLAGS="-Wall -Werror"
- make
script:
- run-parts --regex catch_ bin/
arduino:
before_script:
- wget https://downloads.arduino.cc/arduino-1.8.9-linux64.tar.xz
- tar xvfJ arduino-1.8.9-linux64.tar.xz
- cd arduino-1.8.9
- ./arduino --pref "boardsmanager.additional.urls=https://adafruit.github.io/arduino-board-index/package_adafruit_index.json,http://arduino.esp8266.com/stable/package_esp8266com_index.json" --save-prefs
- ./arduino --install-boards esp8266:esp8266
- ./arduino --install-library TaskScheduler
- ./arduino --install-library ArduinoJson
- git clone https://github.com/me-no-dev/ESPAsyncTCP; cp -r ESPAsyncTCP/src ~/Arduino/libraries/ESPAsyncTCP
- git clone https://github.com/me-no-dev/AsyncTCP; cp -r AsyncTCP/src ~/Arduino/libraries/AsyncTCP
- cp -r ../src ~/Arduino/libraries/painlessMesh
script:
- ./arduino -v --board esp8266:esp8266:d1_mini:xtal=80,eesz=4M1M --verify ../examples/startHere/startHere.ino
- ./arduino -v --board esp8266:esp8266:d1_mini:xtal=80,eesz=4M1M --verify ../examples/startHere/basic.ino
pages:
script:
- apt-get update && apt-get install -y doxygen
- doxygen doxygen/Doxyfile
- mv doxygen/documentation/html/ public/
artifacts:
paths:
- public
only:
- master
pages_develop:
script:
- apt-get update && apt-get install -y doxygen
- doxygen doxygen/Doxyfile
- mv doxygen/documentation/html/ html/
artifacts:
paths:
- html
only:
- develop