Sfoglia il codice sorgente

include msc_dual_lun example to travis

hathach 6 anni fa
parent
commit
30cc042f6e
2 ha cambiato i file con 6 aggiunte e 8 eliminazioni
  1. 1 5
      .travis.yml
  2. 5 3
      tools/build_all.py

+ 1 - 5
.travis.yml

@@ -17,8 +17,4 @@ before_script:
   - (! var_search "${TRAVIS_SDK-}" arm || arm-none-eabi-gcc --version)
   - (! var_search "${TRAVIS_SDK-}" arm || arm-none-eabi-gcc --version)
 
 
 script:
 script:
-  - make -j2 -C examples/device/cdc_msc_hid BOARD=metro_m0_express
-  - make -j2 -C examples/device/cdc_msc_hid BOARD=metro_m4_express
-  - make -j2 -C examples/device/cdc_msc_hid BOARD=stm32f407g_disc1
-  - make -j2 -C examples/device/cdc_msc_hid BOARD=pca10056
-
+  - python3 tools/build_all.py

+ 5 - 3
tools/build_all.py

@@ -4,8 +4,10 @@ import sys
 import subprocess
 import subprocess
 import time
 import time
 
 
+all_device_example = ["cdc_msc_hid", "msc_dual_lun"]
 all_boards = ["metro_m0_express", "metro_m4_express", "pca10056", "stm32f407g_disc1"]
 all_boards = ["metro_m0_express", "metro_m4_express", "pca10056", "stm32f407g_disc1"]
 
 
-for board in all_boards:
-    subprocess.run("make -j2 -C examples/device/cdc_msc_hid BOARD={} clean".format(board), shell=True)
-    subprocess.run("make -j2 -C examples/device/cdc_msc_hid BOARD={} all".format(board), shell=True)
+for example in all_device_example:
+    for board in all_boards:
+        subprocess.run("make -j2 -C examples/device/{} BOARD={} clean".format(example, board), shell=True)
+        subprocess.run("make -j2 -C examples/device/{} BOARD={} all".format(example, board), shell=True)