Skip to content
This repository has been archived by the owner on Nov 25, 2021. It is now read-only.

Commit

Permalink
Separate non-core tizen builds for Jenkins
Browse files Browse the repository at this point in the history
The continuous integration system for IoTivity builds the targets
tizen_secured and tizen_unsecured as defined in auto_build.py.  These two
not only do a full build of tizen, but also several extra builds of
samples as defined in the build_tizen function.  This change separates the
extra builds into separate targets so a developer can still easily
call them, but they will not be part of the required CI build on
every change submitted to gerrit.

Change-Id: I1c8846e74afb2eb18532baa64543e320ef045ba9
Signed-off-by: Mats Wichmann <mats@linux.com>
  • Loading branch information
mwichmann committed Oct 21, 2018
1 parent 34a16d9 commit fa07c43
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion auto_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def helpmsg(script):
android_armeabi_with_rm_and_ip android_armeabi_with_rm_and_bt
android_armeabi_with_rm_and_ble
windows msys simulator darwin tizen tizen_unsecured tizen_secured
tizen_extra tizen_extra_unsecured tizen_extra_secured
unit_tests unit_tests_secured unit_tests_unsecured
unit_tests_memcheck_secured unit_tests_memcheck_unsecured
Expand Down Expand Up @@ -489,7 +490,11 @@ def build_tizen(flag, scons_options):
if exit_code != 0:
sys.exit(exit_code)


def build_tizen_extra(flag, scons_options):
print ("*********** Build for Tizen octbstack lib and sample *************")
# make sure the following file as been updated for these builds:
# resource/csdk/stack/samples/tizen/build/gbsbuild.sh
build_extra_options = "-f resource/csdk/stack/samples/tizen/build/SConscript " + scons_options
build_options = {
'TARGET_OS': 'tizen',
Expand All @@ -503,11 +508,15 @@ def build_tizen(flag, scons_options):
build_options['ROUTING'] = 'GW'
call_scons(build_options, build_extra_options)

print ("*********** Build for Tizen Easy-Setup sample *************")
print ("*********** Build for Tizen Easy-Setup sample *************")
# make sure the following file has been updated for these builds:
# service/easy-setup/sampleapp/enrollee/tizen-sdb/EnrolleeSample/build/tizen/gbsbuild.sh
build_options['ROUTING'] = 'EP'
build_options['ES_TARGET_ENROLLEE'] = 'tizen'
build_extra_options = "-f service/easy-setup/sampleapp/enrollee/tizen-sdb/EnrolleeSample/build/tizen/SConscript " + scons_options
call_scons(build_options, build_extra_options)

print ("*********** Build for Tizen Easy-Setup sample with multiple owner *************")
build_options['MULTIPLE_OWNER'] = 1
call_scons(build_options, build_extra_options)

Expand All @@ -520,6 +529,14 @@ def build_tizen_unsecured(flag, scons_options):
build_tizen(flag, scons_options + " SECURED=0")


def build_tizen_extra_secured(flag, scons_options):
build_tizen_extra(flag, scons_options + " SECURED=1")


def build_tizen__extraunsecured(flag, scons_options):
build_tizen_extra(flag, scons_options + " SECURED=0")


# Mac OS and iOS
def build_darwin(flag, scons_options):
print ("*********** Build for OSX *************")
Expand Down Expand Up @@ -816,6 +833,10 @@ def unit_tests():
build_tizen("true", "")
build_tizen("false", "")

elif str(sys.argv[1]) == "tizen_extra":
build_tizen_extra("true", "")
build_tizen_extra("false", "")

elif str(sys.argv[1]) == "tizen_unsecured":
build_tizen_unsecured("true", "")
build_tizen_unsecured("false", "")
Expand All @@ -824,6 +845,14 @@ def unit_tests():
build_tizen_secured("true", "")
build_tizen_secured("false", "")

elif str(sys.argv[1]) == "tizen_extra_unsecured":
build_tizen_extra_unsecured("true", "")
build_tizen_extra_unsecured("false", "")

elif str(sys.argv[1]) == "tizen_extra_secured":
build_tizen_extra_secured("true", "")
build_tizen_extra_secured("false", "")

elif str(sys.argv[1]) == "simulator":
build_simulator("true", "")
build_simulator("false", "")
Expand Down

0 comments on commit fa07c43

Please sign in to comment.