reeneable simulator in CI builds

1.2-legacy
Kevin Hester 2021-05-23 17:02:47 +08:00
rodzic 7f2bbcd95e
commit 13199f13c2
2 zmienionych plików z 17 dodań i 8 usunięć

Wyświetl plik

@ -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

Wyświetl plik

@ -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()'