This commit is contained in:
parent
cbe3ba3f30
commit
ce78825f66
@ -6,6 +6,7 @@ pipeline:
|
||||
- pip install -U platformio
|
||||
- pio run -e bike -e bike_ble
|
||||
- pio run -e bike -e bike_ble --target buildfs
|
||||
- pio check -e bike -e bike_ble
|
||||
build_esp32:
|
||||
group: build
|
||||
image: python
|
||||
@ -13,6 +14,7 @@ pipeline:
|
||||
- pip install -U platformio
|
||||
- pio run -e esp32 -e esp32_wifi -e esp32_bluetooth
|
||||
- pio run -e esp32 -e esp32_wifi -e esp32_bluetooth --target buildfs
|
||||
- pio check -e esp32 -e esp32_wifi -e esp32_bluetooth
|
||||
build_8266:
|
||||
group: build
|
||||
image: python
|
||||
@ -20,3 +22,4 @@ pipeline:
|
||||
- pip install -U platformio
|
||||
- pio run -e esp8266 -e esp8266_wifi
|
||||
- pio run -e esp8266 -e esp8266_wifi --target buildfs
|
||||
- pio check -e esp8266 -e esp8266_wifi
|
||||
|
@ -2,12 +2,13 @@ Import("env")
|
||||
|
||||
import fnmatch
|
||||
import os
|
||||
import json
|
||||
|
||||
def verify_json(source, target, env):
|
||||
for root, dirnames, files in os.walk("data"):
|
||||
for file in files:
|
||||
if file.endswith(".json"):
|
||||
if (env.Execute("json_verify < " + root + '/' + file)):
|
||||
Exit(1)
|
||||
print("Validating " + root + '/' + file + '...')
|
||||
json.load(open(root + '/' + file, 'r'))
|
||||
|
||||
env.AddPreAction("buildfs", verify_json)
|
||||
|
Loading…
Reference in New Issue
Block a user