Skip to content

Commit

Permalink
tests: Add test for Ubuntu 20.04
Browse files Browse the repository at this point in the history
Change-Id: I38bbde4fad7bdc72ad99a1957678539ea813013e
  • Loading branch information
ptrkrysik committed May 3, 2021
1 parent 92e4032 commit 6e14734
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ dist: bionic
language: ruby

env:
- DOCKERFILE=tests/dockerfiles/Ubuntu_20_04.docker IMGNAME=ubuntu_20_04
- DOCKERFILE=tests/dockerfiles/Debian_testing.docker IMGNAME=debian_testing

services:
Expand All @@ -13,6 +14,6 @@ before_install:
- cat $DOCKERFILE > Dockerfile ; docker build -t $IMGNAME .

script:
# - docker run -it --rm $IMGNAME sh -c 'cd /src/build;make test'
- docker run -it --rm $IMGNAME sh -c 'cd /src/build;make test'
- docker run -it --rm $IMGNAME /src/tests/scripts/decode.sh
- docker run -it --rm $IMGNAME /src/tests/scripts/decrypt.sh
32 changes: 32 additions & 0 deletions tests/dockerfiles/Ubuntu_20_04.docker
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
FROM ubuntu:20.04
MAINTAINER Piotr Krysik

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
cmake \
autoconf \
libtool \
pkg-config \
build-essential \
libcppunit-dev \
swig \
doxygen \
liblog4cpp5-dev \
python3-docutils \
python3-scipy \
gnuradio-dev \
liborc-dev \
libosmocore-dev \
gr-osmosdr

COPY ./ /src/
RUN mkdir /src/build
WORKDIR /src/build

RUN cmake .. && \
# The parallel build sometimes fails when the .grc_gnuradio
# and .gnuradio directories do not exist
mkdir $HOME/.grc_gnuradio/ $HOME/.gnuradio/ && \
make -j $(nproc) && \
make install && \
ldconfig && \
make CTEST_OUTPUT_ON_FAILURE=1 test

0 comments on commit 6e14734

Please sign in to comment.