Skip to content

Commit 935f537

Browse files
committed
Build release - add copy targets.json file
1 parent 36ff1f7 commit 935f537

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tools/build_release.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
from os.path import join, abspath, dirname, normpath
2121
from optparse import OptionParser
2222
import json
23+
from shutil import copy
2324

2425
# Be sure that the tools directory is in the search path
2526
ROOT = abspath(join(dirname(__file__), ".."))
@@ -31,7 +32,7 @@
3132
from tools.test_exporters import ReportExporter, ResultExporterType
3233
from tools.test_api import SingleTestRunner
3334
from tools.test_api import singletest_in_cli_mode
34-
from tools.paths import TEST_DIR
35+
from tools.paths import TEST_DIR, MBED_LIBRARIES
3536
from tools.tests import TEST_MAP
3637

3738
OFFICIAL_MBED_LIBRARY_BUILD = (
@@ -169,6 +170,9 @@
169170
except Exception, e:
170171
print str(e)
171172

173+
# copy targets.json file as part of the release
174+
copy(join(dirname(abspath(__file__)), '..', 'hal', 'targets.json'), MBED_LIBRARIES)
175+
172176
# Write summary of the builds
173177
if options.report_build_file_name:
174178
file_report_exporter = ReportExporter(ResultExporterType.JUNIT, package="build")

0 commit comments

Comments
 (0)