forked from ptrkrysik/gr-gsm
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
travis: Test in Ubuntu 18.04 container
- Install gnuradio from the new official PPA repository https://launchpad.net/~gnuradio/+archive/ubuntu/gnuradio-releases Change-Id: Iaa8813ab0ae91b667285ab3ef42ffaa279e3a885
- Loading branch information
Showing
3 changed files
with
53 additions
and
0 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 +1,2 @@ | ||
build* | ||
.git |
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
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,51 @@ | ||
FROM ubuntu:18.04 | ||
MAINTAINER Vasil Velichkov | ||
|
||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \ | ||
software-properties-common && \ | ||
add-apt-repository --yes ppa:gnuradio/gnuradio-releases && \ | ||
DEBIAN_FRONTEND=noninteractive apt-get install -y \ | ||
git \ | ||
cmake \ | ||
autoconf \ | ||
libtool \ | ||
pkg-config \ | ||
build-essential \ | ||
python-docutils \ | ||
libcppunit-dev \ | ||
swig \ | ||
doxygen \ | ||
liblog4cpp5-dev \ | ||
python-scipy \ | ||
gnuradio-dev gnuradio libgmp-dev libboost-regex-dev liborc-dev libuhd-dev \ | ||
libosmocore-dev | ||
|
||
RUN git clone --branch maint-3.8 --recurse-submodules https://github.com/velichkov/gr-iqbal && \ | ||
cd gr-iqbal && \ | ||
mkdir build && \ | ||
cd build && \ | ||
cmake -DENABLE_DOXYGEN=OFF .. && \ | ||
make -j $(nproc) install | ||
|
||
RUN git clone --branch maint-3.8 https://github.com/velichkov/gr-osmosdr && \ | ||
cd gr-osmosdr && \ | ||
mkdir build && \ | ||
cd build && \ | ||
cmake -DENABLE_DOXYGEN=OFF .. && \ | ||
make -j $(nproc) install | ||
|
||
COPY ./ /src/ | ||
RUN mkdir /src/build | ||
WORKDIR /src/build | ||
|
||
#PYTHONPATH is needed as gr-osmosdr gets installed in /usr/local/lib/python3/... | ||
ENV PYTHONPATH=/usr/local/lib/python3/dist-packages/:$PYTHONPATH | ||
|
||
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 |