Skip to content

Commit 0314519

Browse files
author
Kjell Hedström
authored
first try (#49)
* first try * test * typo removed * installing unzip * debug info * fixing path issues * Update Dockerfile * Install boost
1 parent 022c882 commit 0314519

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

.travis.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
sudo: required
2+
3+
language: cpp
4+
services:
5+
- docker
6+
7+
before_install:
8+
- docker pull ubuntu:16.04
9+
10+
script:
11+
- docker build .
12+
13+

Dockerfile

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
FROM ubuntu:16.04
2+
3+
# Install
4+
RUN apt-get update -y
5+
RUN apt-get install -y apt-utils | true
6+
RUN apt-get install -y software-properties-common | true
7+
RUN apt-get install -y python-software-properties
8+
RUN apt-get update -y
9+
RUN add-apt-repository -y ppa:jonathonf/gcc-7.1
10+
RUN apt-get update -y
11+
RUN apt-get install -y cmake software-properties-common git make
12+
RUN apt-get install -y gcc-7 g++-7
13+
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 90
14+
RUN update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 90
15+
RUN apt-get install -y unzip zlib1g-dev
16+
RUN apt-get install -y libboost-all-dev
17+
18+
# Build Preparation
19+
RUN mkdir -p /src/
20+
RUN mkdir -p /src/build/
21+
22+
# Build
23+
WORKDIR /src/
24+
COPY . /src/
25+
RUN cd /src
26+
27+
28+
RUN git clone https://github.com/KjellKod/g3log.git
29+
RUN cd /src/g3log/3rdParty/gtest && unzip gtest-1.7.0.zip
30+
RUN cd /src/g3log && mkdir build
31+
RUN cd /src/g3log/build && cmake .. && make -j && make install
32+
33+
34+
# Build g3sinks
35+
# Cleanup
36+
RUN cd /src/3rdparty && unzip gtest-1.7.0.zip
37+
RUN cd /src/logrotate && mkdir build && cd build && cmake -DADD_LOGROTATE_UNIT_TEST=ON ..
38+
RUN cd /src/logrotate/build && make -j && ./UnitTestRunner

0 commit comments

Comments
 (0)