tools/testbuild.sh: added store compilation artifacts for cmake
Added the ability to store compilation artifacts for cmake after a job.
This commit is contained in:
parent
cd4fdf27c5
commit
c4efab7eea
@ -195,7 +195,7 @@ fi
|
|||||||
cd $nuttx || { echo "ERROR: failed to CD to $nuttx"; exit 1; }
|
cd $nuttx || { echo "ERROR: failed to CD to $nuttx"; exit 1; }
|
||||||
|
|
||||||
function exportandimport {
|
function exportandimport {
|
||||||
# Do nothing until we finish to build the nuttx
|
# Do nothing until we finish to build the nuttx.
|
||||||
if [ ! -f nuttx ]; then
|
if [ ! -f nuttx ]; then
|
||||||
return $fail
|
return $fail
|
||||||
fi
|
fi
|
||||||
@ -387,6 +387,14 @@ function build_cmake {
|
|||||||
fail=1
|
fail=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ ${SAVEARTIFACTS} -eq 1 ]; then
|
||||||
|
artifactconfigdir=$ARTIFACTDIR/$(echo $config | sed "s/:/\//")/
|
||||||
|
mkdir -p $artifactconfigdir
|
||||||
|
cd $nuttx/build
|
||||||
|
xargs -I "{}" cp "{}" $artifactconfigdir < $nuttx/build/nuttx.manifest
|
||||||
|
cd $nuttx
|
||||||
|
fi
|
||||||
|
|
||||||
return $fail
|
return $fail
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user