-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update docker.yml Add support for bionic * Update for bionic * Updates * Add git to install build tools * Updates after shell script linter * Undo script changes from linter since they broke script * Address script linter warnings * Update to .sh extension inline with google style guide
- Loading branch information
1 parent
9d81166
commit ecbadec
Showing
3 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
set -e | ||
# shellcheck source=/dev/null | ||
. /etc/lsb-release | ||
echo "Distribution code name : ${DISTRIB_CODENAME}" | ||
apt-get update | ||
if [ "$DISTRIB_CODENAME" = "bionic" ];then | ||
echo "Installing bionic build tools ..." | ||
DEPENDENCIES=( | ||
build-essential | ||
cmake | ||
googletest | ||
google-mock | ||
gdb | ||
git) | ||
else | ||
echo "Installing other linux distribution (focal or jammy) build tools ..." | ||
DEPENDENCIES=( | ||
build-essential | ||
cmake | ||
build-essential | ||
libgtest-dev | ||
libgmock-dev | ||
gdb | ||
git) | ||
fi | ||
DEBIAN_FRONTEND=noninteractive apt install --no-install-recommends --yes --quiet "${DEPENDENCIES[@]}" |