-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* first try * test * typo removed * installing unzip * debug info * fixing path issues * Update Dockerfile * Install boost
- Loading branch information
Kjell Hedström
authored
Jun 4, 2017
1 parent
022c882
commit 0314519
Showing
2 changed files
with
51 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
sudo: required | ||
|
||
language: cpp | ||
services: | ||
- docker | ||
|
||
before_install: | ||
- docker pull ubuntu:16.04 | ||
|
||
script: | ||
- docker build . | ||
|
||
|
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,38 @@ | ||
FROM ubuntu:16.04 | ||
|
||
# Install | ||
RUN apt-get update -y | ||
RUN apt-get install -y apt-utils | true | ||
RUN apt-get install -y software-properties-common | true | ||
RUN apt-get install -y python-software-properties | ||
RUN apt-get update -y | ||
RUN add-apt-repository -y ppa:jonathonf/gcc-7.1 | ||
RUN apt-get update -y | ||
RUN apt-get install -y cmake software-properties-common git make | ||
RUN apt-get install -y gcc-7 g++-7 | ||
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 90 | ||
RUN update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 90 | ||
RUN apt-get install -y unzip zlib1g-dev | ||
RUN apt-get install -y libboost-all-dev | ||
|
||
# Build Preparation | ||
RUN mkdir -p /src/ | ||
RUN mkdir -p /src/build/ | ||
|
||
# Build | ||
WORKDIR /src/ | ||
COPY . /src/ | ||
RUN cd /src | ||
|
||
|
||
RUN git clone https://github.com/KjellKod/g3log.git | ||
RUN cd /src/g3log/3rdParty/gtest && unzip gtest-1.7.0.zip | ||
RUN cd /src/g3log && mkdir build | ||
RUN cd /src/g3log/build && cmake .. && make -j && make install | ||
|
||
|
||
# Build g3sinks | ||
# Cleanup | ||
RUN cd /src/3rdparty && unzip gtest-1.7.0.zip | ||
RUN cd /src/logrotate && mkdir build && cd build && cmake -DADD_LOGROTATE_UNIT_TEST=ON .. | ||
RUN cd /src/logrotate/build && make -j && ./UnitTestRunner |