mirror of
https://github.com/cesanta/mongoose.git
synced 2025-01-14 09:48:01 +08:00
wip
This commit is contained in:
parent
6bfd113a87
commit
d6be9a2bba
3
.github/workflows/test.yml
vendored
3
.github/workflows/test.yml
vendored
@ -149,6 +149,9 @@ jobs:
|
|||||||
run: make -C examples/stm32/nucleo-f429zi-baremetal test VCON_API_KEY=${{secrets.VCON_API_KEY}}
|
run: make -C examples/stm32/nucleo-f429zi-baremetal test VCON_API_KEY=${{secrets.VCON_API_KEY}}
|
||||||
- if: ${{ env.GO == 1 }}
|
- if: ${{ env.GO == 1 }}
|
||||||
run: make -C examples/stm32/nucleo-f429zi-freertos test VCON_API_KEY=${{secrets.VCON_API_KEY}}
|
run: make -C examples/stm32/nucleo-f429zi-freertos test VCON_API_KEY=${{secrets.VCON_API_KEY}}
|
||||||
|
- run: echo GO=0 >> $GITHUB_ENV ; if ./test/match_changed_files.sh '^src|examples/stm32/nucleo-f4*-cube-*'; then echo GO=1 >> $GITHUB_ENV ; fi
|
||||||
|
- if: ${{ env.GO == 1 }}
|
||||||
|
run: make -f test/cube/Makefile examples/stm32/nucleo-f429zi-baremetal test VCON_API_KEY=${{secrets.VCON_API_KEY}}
|
||||||
|
|
||||||
test_h7:
|
test_h7:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
ROOT ?= $(realpath $(CURDIR)/../..)
|
ROOT ?= $(realpath $(CURDIR)/../..)
|
||||||
PROJECTS = $(wildcard ../../examples/stm32/nucleo-*-cube-*)
|
PROJECTS ?= $(wildcard ../../examples/stm32/nucleo-*-cube-*)
|
||||||
|
TARGET ?= Debug
|
||||||
DOCKER = docker run --rm -v $(ROOT):$(ROOT) -v $(CURDIR):/root -w $(CURDIR)
|
DOCKER = docker run --rm -v $(ROOT):$(ROOT) -v $(CURDIR):/root -w $(CURDIR)
|
||||||
IMAGE ?= springrockconsulting/stm32cubeide:v1
|
IMAGE ?= springrockconsulting/stm32cubeide:v1
|
||||||
# image author did not set path, so a hardcoded reference to a variable name dir is needed
|
# image author did not set path, so a hardcoded reference to a variable name dir is needed
|
||||||
@ -8,6 +9,17 @@ all: $(PROJECTS)
|
|||||||
$(DOCKER) $(IMAGE) /opt/st/stm32cubeide_1.12.0/headless-build.sh -data workspace -removeAll workspace
|
$(DOCKER) $(IMAGE) /opt/st/stm32cubeide_1.12.0/headless-build.sh -data workspace -removeAll workspace
|
||||||
|
|
||||||
$(PROJECTS): FORCE
|
$(PROJECTS): FORCE
|
||||||
$(DOCKER) $(IMAGE) /opt/st/stm32cubeide_1.12.0/headless-build.sh -data workspace -import $@ -cleanBuild $(@F)
|
$(DOCKER) $(IMAGE) /opt/st/stm32cubeide_1.12.0/headless-build.sh -data workspace -import $@ -cleanBuild $(@F)/$(TARGET)
|
||||||
|
|
||||||
FORCE:
|
FORCE:
|
||||||
|
|
||||||
|
# Automated remote test. See https://vcon.io/automated-firmware-tests/
|
||||||
|
URL ?= https://dash.vcon.io/api/v3/devices
|
||||||
|
update: $(PROJECTS)
|
||||||
|
curl --fail-with-body -su :$(VCON_API_KEY) $(URL)/$(DEVICE)/ota --data-binary @$</$(TARGET)/firmware.bin
|
||||||
|
|
||||||
|
test update: TARGET = Test
|
||||||
|
test: update
|
||||||
|
curl --fail-with-body -su :$(VCON_API_KEY) $(URL)/$(DEVICE)/tx?t=5 | tee /tmp/output.txt
|
||||||
|
grep 'READY, IP:' /tmp/output.txt # Check for network init
|
||||||
|
# grep 'MQTT connected' /tmp/output.txt # Check for MQTT connection success
|
||||||
|
Loading…
x
Reference in New Issue
Block a user