Change in gr-gsm[master]: tests: Add test for Ubuntu 20.04

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

ptrkrysik gerrit-no-reply at lists.osmocom.org
Mon May 3 10:31:57 UTC 2021


ptrkrysik has submitted this change. ( https://gerrit.osmocom.org/c/gr-gsm/+/24101 )

Change subject: tests: Add test for Ubuntu 20.04
......................................................................

tests: Add test for Ubuntu 20.04

Change-Id: I38bbde4fad7bdc72ad99a1957678539ea813013e
---
M .travis.yml
A tests/dockerfiles/Ubuntu_20_04.docker
2 files changed, 34 insertions(+), 1 deletion(-)

Approvals:
  ptrkrysik: Looks good to me, approved; Verified



diff --git a/.travis.yml b/.travis.yml
index 5dcec4d..8ef60ed 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,6 +4,7 @@
 language: ruby
 
 env:
+  - DOCKERFILE=tests/dockerfiles/Ubuntu_20_04.docker IMGNAME=ubuntu_20_04
   - DOCKERFILE=tests/dockerfiles/Debian_testing.docker IMGNAME=debian_testing
 
 services:
@@ -13,6 +14,6 @@
   - 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
diff --git a/tests/dockerfiles/Ubuntu_20_04.docker b/tests/dockerfiles/Ubuntu_20_04.docker
new file mode 100644
index 0000000..f972d9e
--- /dev/null
+++ b/tests/dockerfiles/Ubuntu_20_04.docker
@@ -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

-- 
To view, visit https://gerrit.osmocom.org/c/gr-gsm/+/24101
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: gr-gsm
Gerrit-Branch: master
Gerrit-Change-Id: I38bbde4fad7bdc72ad99a1957678539ea813013e
Gerrit-Change-Number: 24101
Gerrit-PatchSet: 1
Gerrit-Owner: ptrkrysik <ptrkrysik at gmail.com>
Gerrit-Reviewer: ptrkrysik <ptrkrysik at gmail.com>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210503/885ecfe4/attachment.htm>


More information about the gerrit-log mailing list