-
Notifications
You must be signed in to change notification settings - Fork 3
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
1 parent
ab757f1
commit 425895c
Showing
2 changed files
with
23 additions
and
18 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 |
---|---|---|
@@ -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 . |
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 @@ | ||
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 |