@@ -48,9 +48,10 @@ BUILDS[debug-afc-timing-${GIT_DESCRIBE}]="\
4848
4949TOP=$( pwd)
5050
51- case " ${DEPLOY} " in
52- all)
53- # Generate builds for all list items
51+ case " ${BUILD_ARTIFACT} " in
52+ # Generate builds for all list items. Both "all_binaries"
53+ # and "docs" needs to build everyting and pass all tests.
54+ all_binaries|docs)
5455 for build in " ${! BUILDS[@]} " ; do
5556 echo " Generating build for:" ${build} && \
5657 mkdir -p ${BUILD_DIR} -${build} && \
@@ -66,25 +67,28 @@ case "${DEPLOY}" in
6667 cd ${TOP}
6768 done
6869
69- # Copy the generated files to the release folder
70- mkdir -p ${RELEASE_DIR}
71- for build in " ${! BUILDS[@]} " ; do
72- case " ${build} " in
73- debug* )
74- cp ${BUILD_DIR} -${build} /out/openMMC.axf ${RELEASE_DIR} /openMMC-${build} .axf
75- ;;
76-
77- * )
78- cp ${BUILD_DIR} -${build} /out/openMMC.bin ${RELEASE_DIR} /openMMC-${build} .bin
79- cp ${BUILD_DIR} -${build} /out/openMMC_full.bin ${RELEASE_DIR} /openMMC-full-${build} .bin
80- ;;
81- esac
82- done
70+ # Extra step for "all_binaries" is to copy
71+ # the artifacts to a release folder
72+ if [ " ${BUILD_ARTIFACT} " = " all_binaries" ]; then
73+ # Copy the generated files to the release folder
74+ mkdir -p ${RELEASE_DIR}
75+ for build in " ${! BUILDS[@]} " ; do
76+ case " ${build} " in
77+ debug* )
78+ cp ${BUILD_DIR} -${build} /out/openMMC.axf ${RELEASE_DIR} /openMMC-${build} .axf
79+ ;;
8380
81+ * )
82+ cp ${BUILD_DIR} -${build} /out/openMMC.bin ${RELEASE_DIR} /openMMC-${build} .bin
83+ cp ${BUILD_DIR} -${build} /out/openMMC_full.bin ${RELEASE_DIR} /openMMC-full-${build} .bin
84+ ;;
85+ esac
86+ done
87+ fi
8488 ;;
8589
8690 # Regular build
87- * )
91+ binary )
8892 mkdir -p ${BUILD_DIR} && \
8993 cd ${BUILD_DIR} && \
9094 cmake ../ \
@@ -95,4 +99,9 @@ case "${DEPLOY}" in
9599 make
96100 ;;
97101
102+ * )
103+ echo " BUILD_ARTIFACT invalid: " ${BUILD_ARTIFACT}
104+ exit 0
105+ ;;
106+
98107esac
0 commit comments