diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7ec9037b..9b142441 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -59,14 +59,14 @@ jobs: pio upgrade # We now run integration test before other build steps (to quickly see runtime failures) - #- name: Build for native - # run: platformio run -e native - #- name: Integration test - # run: | - # .pio/build/native/program & - # sleep 20 # 5 seconds was not enough - # echo "Simulator started, launching python test..." - # python3 -c 'from meshtastic.test import testSimulator; testSimulator()' + - name: Build for native + run: platformio run -e native + - name: Integration test + run: | + .pio/build/native/program & + sleep 20 # 5 seconds was not enough + echo "Simulator started, launching python test..." + python3 -c 'from meshtastic.test import testSimulator; testSimulator()' # - name: Build for tbeam # run: platformio run -e tbeam diff --git a/bin/test-simulator.sh b/bin/test-simulator.sh new file mode 100755 index 00000000..46158dc5 --- /dev/null +++ b/bin/test-simulator.sh @@ -0,0 +1,9 @@ +set -e + +echo "Starting simulator" +.pio/build/native/program & +sleep 20 # 5 seconds was not enough + +echo "Simulator started, launching python test..." +python3 -c 'from meshtastic.test import testSimulator; testSimulator()' +