CI: save download config in CI build jobs:

IDF built app download config may change with some modification.
save the download configs for built APP in build stage.
then we can use the correct download config in test stage.
This commit is contained in:
He Yin Ling 2017-04-18 22:38:08 +08:00
parent 07b61d54f7
commit 2b273388dd
2 changed files with 5 additions and 0 deletions

View File

@ -95,6 +95,7 @@ build_esp_idf_tests:
- ./tools/unit-test-app/build/*.bin - ./tools/unit-test-app/build/*.bin
- ./tools/unit-test-app/build/*.elf - ./tools/unit-test-app/build/*.elf
- ./tools/unit-test-app/build/*.map - ./tools/unit-test-app/build/*.map
- ./tools/unit-test-app/build/download.config
- ./tools/unit-test-app/build/bootloader/*.bin - ./tools/unit-test-app/build/bootloader/*.bin
- ./components/idf_test/unit_test/TestCaseAll.yml - ./components/idf_test/unit_test/TestCaseAll.yml
- ./components/idf_test/unit_test/CIConfigs/*.yml - ./components/idf_test/unit_test/CIConfigs/*.yml
@ -103,6 +104,8 @@ build_esp_idf_tests:
script: script:
- cd tools/unit-test-app - cd tools/unit-test-app
- make TESTS_ALL=1 - make TESTS_ALL=1
# cut last line in case make V=0/1 is set by default
- make print_flash_cmd | tail -n 1 > build/download.config
- python tools/UnitTestParser.py - python tools/UnitTestParser.py
build_examples: build_examples:

View File

@ -7,3 +7,5 @@ PROJECT_NAME := unit-test-app
include $(IDF_PATH)/make/project.mk include $(IDF_PATH)/make/project.mk
print_flash_cmd:
echo $(ESPTOOL_WRITE_FLASH_OPTIONS) $(ESPTOOL_ALL_FLASH_ARGS) | sed -e 's:'$(PWD)/build/'::g'