-
Notifications
You must be signed in to change notification settings - Fork 438
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Daniel Bang
committed
Jul 24, 2020
1 parent
4a9955d
commit 963f226
Showing
7 changed files
with
70 additions
and
13 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
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,20 @@ | ||
FROM ubuntu:20.04 | ||
|
||
WORKDIR /setup-ci | ||
|
||
ADD setup_ci_environment.sh /setup-ci | ||
ADD setup_cmake.sh /setup-ci | ||
ADD install_format_tools.sh /setup-ci | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
ENV DEBCONF_NONINTERACTIVE_SEEN true | ||
|
||
RUN echo "tzdata tzdata/Areas select US" > /tmp/preseed.txt; \ | ||
echo "tzdata tzdata/Zones/Europe select Chicago" >> /tmp/preseed.txt; \ | ||
debconf-set-selections /tmp/preseed.txt && \ | ||
apt-get update && \ | ||
apt-get install -y tzdata | ||
|
||
RUN /setup-ci/setup_ci_environment.sh \ | ||
&& /setup-ci/setup_cmake.sh \ | ||
&& /setup-ci/install_format_tools.sh |
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,8 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
apt install -y clang-format-8 python3-pip git curl | ||
pip3 install cmake_format==0.6.5 | ||
curl -L -o /usr/local/bin/buildifier https://github.com/bazelbuild/buildtools/releases/download/2.2.1/buildifier | ||
chmod +x /usr/local/bin/buildifier |
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,11 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
apt-get update | ||
apt-get install --no-install-recommends --no-install-suggests -y \ | ||
build-essential \ | ||
ca-certificates \ | ||
wget \ | ||
git \ | ||
g++-10 | ||
apt-get install -y lcov |
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,16 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
apt-get install --no-install-recommends --no-install-suggests -y \ | ||
cmake \ | ||
libbenchmark-dev \ | ||
libgtest-dev | ||
|
||
# Follows these instructions for setting up gtest | ||
# https://www.eriksmistad.no/getting-started-with-google-test-on-ubuntu/ | ||
pushd /usr/src/gtest | ||
cmake CMakeLists.txt | ||
make | ||
cp *.a /usr/lib || cp lib/*.a /usr/lib | ||
popd |
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