mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-22 06:01:41 +02:00
Add more commands to build stats prototype.
Make the following commands send stats to chromiumos-build-stats.appspot.com: build_image run_chroot_version_hooks make_chroot setup_board update_chroot BUG=chromium-os:33088 TEST=`cbuildbot --remote -p chromiumos/platform/crosutils alex-paladin` confirm in the log that uploads succeded, and see them show up in queries at chromiumos-build-stats.appspot.com. Change-Id: I0280f91a3e7e0a0483c01c87072bc589003dbe95 Reviewed-on: https://gerrit.chromium.org/gerrit/28969 Tested-by: Matt Tennant <mtennant@chromium.org> Reviewed-by: David James <davidjames@chromium.org> Commit-Ready: Matt Tennant <mtennant@chromium.org>
This commit is contained in:
parent
1eafb5a351
commit
0a9d32d61b
@ -283,7 +283,7 @@ if should_build_image ${CHROMEOS_TEST_IMAGE_NAME}; then
|
|||||||
echo "Test image created as ${CHROMEOS_TEST_IMAGE_NAME}"
|
echo "Test image created as ${CHROMEOS_TEST_IMAGE_NAME}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
print_time_elapsed
|
command_completed
|
||||||
|
|
||||||
cat << EOF
|
cat << EOF
|
||||||
To copy the image to a USB key, use:
|
To copy the image to a USB key, use:
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
|
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
|
||||||
# Use of this source code is governed by a BSD-style license that can be
|
# Use of this source code is governed by a BSD-style license that can be
|
||||||
# found in the LICENSE file.
|
# found in the LICENSE file.
|
||||||
|
|
||||||
@ -151,3 +151,5 @@ if [ "${LATEST_VERSION}" -gt "${CHROOT_VERSION}" ]; then
|
|||||||
done
|
done
|
||||||
popd 1> /dev/null
|
popd 1> /dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
command_completed
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
|
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
|
||||||
# Use of this source code is governed by a BSD-style license that can be
|
# Use of this source code is governed by a BSD-style license that can be
|
||||||
# found in the LICENSE file.
|
# found in the LICENSE file.
|
||||||
|
|
||||||
@ -460,7 +460,7 @@ info "Updating toolchains"
|
|||||||
enter_chroot sudo "${CHROOT_TRUNK}/chromite/bin/cros_setup_toolchains" \
|
enter_chroot sudo "${CHROOT_TRUNK}/chromite/bin/cros_setup_toolchains" \
|
||||||
"${TOOLCHAIN_ARGS[@]}"
|
"${TOOLCHAIN_ARGS[@]}"
|
||||||
|
|
||||||
print_time_elapsed
|
command_completed
|
||||||
|
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
|
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
|
||||||
# Use of this source code is governed by a BSD-style license that can be
|
# Use of this source code is governed by a BSD-style license that can be
|
||||||
# found in the LICENSE file.
|
# found in the LICENSE file.
|
||||||
|
|
||||||
@ -598,6 +598,7 @@ if [ $FLAGS_default -eq $FLAGS_TRUE ] ; then
|
|||||||
echo $BOARD_VARIANT > "$GCLIENT_ROOT/src/scripts/.default_board"
|
echo $BOARD_VARIANT > "$GCLIENT_ROOT/src/scripts/.default_board"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
command_completed
|
||||||
echo "Done!"
|
echo "Done!"
|
||||||
echo "The SYSROOT is: ${BOARD_ROOT}"
|
echo "The SYSROOT is: ${BOARD_ROOT}"
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
|
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
|
||||||
# Use of this source code is governed by a BSD-style license that can be
|
# Use of this source code is governed by a BSD-style license that can be
|
||||||
# found in the LICENSE file.
|
# found in the LICENSE file.
|
||||||
|
|
||||||
@ -119,3 +119,5 @@ PERL_VERSIONS=$(find /usr/lib*/perl5/vendor_perl/ -maxdepth 1 -mindepth 1 \
|
|||||||
if [ "$PERL_VERSIONS" -gt 1 ] ; then
|
if [ "$PERL_VERSIONS" -gt 1 ] ; then
|
||||||
sudo perl-cleaner --all -- --quiet
|
sudo perl-cleaner --all -- --quiet
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
command_completed
|
||||||
|
Loading…
x
Reference in New Issue
Block a user