- Added an extra README file detailing what the scripts are for - The scripts now display a warning and a prompt before requiring user confirmation to continue - The system install commands are only executed in CI environments (ninja and cmake being installed as root without checking for the environment was a leftover from a previous non-GitHub based CI setup)
40 lines
961 B
Bash
Executable File
40 lines
961 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Usage: the first argument selects the build type:
|
|
# - release, to build release only
|
|
# - debug, to build debug only
|
|
# - continuous, to build release and debug
|
|
# - presubmit, for presubmit builds
|
|
#
|
|
# The default is release
|
|
|
|
echo "This script is intended to run in a CI environment and may modify your current environment."
|
|
echo "Please refer to BUILDING.md for more information."
|
|
|
|
read -r -p "Do you wish to proceed (y/n)? " choice
|
|
case "${choice}" in
|
|
y|Y)
|
|
echo "Build will proceed..."
|
|
;;
|
|
n|N)
|
|
exit 0
|
|
;;
|
|
*)
|
|
exit 0
|
|
;;
|
|
esac
|
|
|
|
set -e
|
|
set -x
|
|
|
|
# build-common.sh will generate the following variables:
|
|
# $GENERATE_ARCHIVES
|
|
# $BUILD_DEBUG
|
|
# $BUILD_RELEASE
|
|
source `dirname $0`/../common/ci-common.sh
|
|
source `dirname $0`/ci-common.sh
|
|
source `dirname $0`/../common/build-common.sh
|
|
|
|
pushd `dirname $0`/../.. > /dev/null
|
|
./build.sh -c $RUN_TESTS $GENERATE_ARCHIVES $BUILD_DEBUG $BUILD_RELEASE
|