Skip to content

Commit

Permalink
first try (#49)
Browse files Browse the repository at this point in the history
* 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
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .travis.yml
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 .


38 changes: 38 additions & 0 deletions Dockerfile
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

0 comments on commit 0314519

Please sign in to comment.