mirror of
https://gitlab.com/wirelos/sprocket-lib.git
synced 2025-12-15 05:02:21 +01:00
ci
This commit is contained in:
@@ -1,16 +1,42 @@
|
|||||||
stages:
|
#stages:
|
||||||
- build
|
# - build
|
||||||
|
#
|
||||||
#cache:
|
#cache:
|
||||||
# paths:
|
# paths:
|
||||||
# - .piolibdeps
|
# - .piolibdeps
|
||||||
|
#
|
||||||
|
#build-examples:
|
||||||
|
# stage: build
|
||||||
|
# image: registry.gitlab.com/wirelos/contraption-pipeline/platformio:v1
|
||||||
|
# script:
|
||||||
|
# - pio upgrade
|
||||||
|
# - platformio lib --global install painlessMesh ArduinoJson TaskScheduler PubSubClient ESPAsyncTCP AsyncTCP "ESP Async WebServer"
|
||||||
|
# - platformio ci --lib="." --board=esp12e src/examples/basic/
|
||||||
|
# - platformio ci --lib="." --board=esp12e src/examples/mesh/
|
||||||
|
# - platformio ci --lib="." --board=esp12e src/examples/mqttBridge/
|
||||||
|
|
||||||
build-examples:
|
image: python:2.7-stretch
|
||||||
|
|
||||||
|
# This folder is cached between builds
|
||||||
|
# http://docs.gitlab.com/ce/ci/yaml/README.html#cache
|
||||||
|
cache:
|
||||||
|
paths:
|
||||||
|
- firmware
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- test
|
||||||
|
- build
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- "pip install -U platformio"
|
||||||
|
|
||||||
|
firmware-build:
|
||||||
stage: build
|
stage: build
|
||||||
image: registry.gitlab.com/wirelos/contraption-pipeline/platformio:v1
|
image: python:2.7-stretch
|
||||||
script:
|
script:
|
||||||
- pio upgrade
|
- pio run -t clean
|
||||||
- platformio lib --global install painlessMesh ArduinoJson TaskScheduler PubSubClient ESPAsyncTCP AsyncTCP "ESP Async WebServer"
|
- pio run
|
||||||
- platformio ci --lib="." --board=esp12e src/examples/basic/
|
artifacts:
|
||||||
- platformio ci --lib="." --board=esp12e src/examples/mesh/
|
paths:
|
||||||
- platformio ci --lib="." --board=esp12e src/examples/mqttBridge/
|
- .pioenvs/*/firmware.*
|
||||||
|
- .pioenvs/*/spiffs.bin
|
||||||
|
|||||||
Reference in New Issue
Block a user