forked from hyrise/hyrise
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add install script for macOS and Ubuntu 16.10
- Loading branch information
Showing
4 changed files
with
95 additions
and
26 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[submodule "third_party/googletest"] | ||
path = third_party/googletest | ||
url = git@github.com:google/googletest.git | ||
url = https://github.com/google/googletest.git |
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,45 @@ | ||
#!/bin/bash | ||
|
||
unamestr=$(uname) | ||
if [[ "$unamestr" == 'Darwin' ]]; then | ||
echo "Installing dependencies (this may take a while)..." | ||
if brew update >/dev/null; then | ||
# python2.7 is preinstalled on macOS | ||
if brew install premake boost gcc clang-format gcovr; then | ||
if git submodule update --init; then | ||
echo "Installation successful" | ||
else | ||
echo "Error during installation." | ||
exit 1 | ||
fi | ||
else | ||
echo "Error during installation." | ||
exit 1 | ||
fi | ||
else | ||
echo "Error during installation." | ||
exit 1 | ||
fi | ||
elif [[ "$unamestr" == 'Linux' ]]; then | ||
if cat /etc/lsb-release | grep DISTRIB_ID | grep Ubuntu >/dev/null; then | ||
echo "Installing dependencies (this may take a while)..." | ||
if sudo apt-get update >/dev/null; then | ||
if sudo apt-get install premake4 libboost-all-dev clang-format gcovr python2.7 gcc-6 clang; then | ||
if git submodule update --init; then | ||
echo "Installation successful." | ||
else | ||
echo "Error during installation." | ||
exit 1 | ||
fi | ||
else | ||
echo "Error during installation." | ||
exit 1 | ||
fi | ||
else | ||
echo "Error during installation." | ||
exit 1 | ||
fi | ||
fi | ||
fi | ||
|
||
exit 0 |
Submodule googletest
updated
4 files
+1 −3 | googletest/cmake/internal_utils.cmake | |
+3 −9 | googletest/include/gtest/internal/gtest-port.h | |
+0 −7 | googletest/test/gtest-port_test.cc | |
+1 −1 | googletest/test/gtest_unittest.cc |