Skip to content

Commit

Permalink
Fixing Travis, adding docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
aroffringa committed Sep 13, 2018
1 parent ab757f1 commit 425895c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 18 deletions.
25 changes: 7 additions & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,9 @@
language: cpp
compiler: gcc
os: linux
language: generic

sudo: required
dist: artful
before_install:
- sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu/ artful main restricted universe multiverse" -y
- sudo apt-get -qq update
- sudo apt-get full-upgrade apt
- sudo apt-get install -y cmake casacore-dev libgsl0-dev libboost-system-dev libboost-filesystem-dev libboost-test-dev

script:
# Not all tests are run, because some fail on travisci because they run out of the (restricted) memory requirements of Travis.
- mkdir build
&& cd build
&& cmake -DCMAKE_BUILD_TYPE=Debug ..
&& make
&& sudo make install
&& make runtests
&& ./runtests -t encode_example,bytepacking,dithering,timeblock_encoder
services:
- docker

before_install:
- docker build -f .travis/Dockerfile .
16 changes: 16 additions & 0 deletions .travis/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM kernsuite/base:4

RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && \
apt-get install -y \
casacore-data casacore-dev \
libboost-test-dev libboost-system-dev libboost-filesystem-dev \
cmake \
build-essential \
libgsl-dev pkg-config

ADD . /src
WORKDIR /src

RUN mkdir /build && cd /build && cmake ../src

RUN cd /build && make -j2 && make install && make check -j2

0 comments on commit 425895c

Please sign in to comment.