-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate and optimize pipeline build steps; Add coverage to test step (…
…#265) * Separate and optimize pipeline build steps; Add coverage to test step * Move src copy out of base image; remove env extensions * Use a dymanic tag for the base image * Define base tag and fix test step * Remove wrong slash * Exclude build from coverage * WIP test filter coverage * Use ninja for testing * Use correct ninja package * Optimize coverage files; Add more threads for dp3 build
- Loading branch information
1 parent
e376aa8
commit 3906b7a
Showing
5 changed files
with
57 additions
and
60 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
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,23 @@ | ||
FROM ubuntu:20.04 | ||
|
||
RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && \ | ||
apt-get install -y \ | ||
libboost-python-dev libcfitsio-dev python3-dev python3-numpy cmake \ | ||
build-essential libhdf5-serial-dev libarmadillo-dev \ | ||
libboost-filesystem-dev libboost-system-dev libboost-date-time-dev \ | ||
libboost-program-options-dev libboost-test-dev \ | ||
libxml2-dev libpng-dev pkg-config \ | ||
libgtkmm-3.0-dev git libfftw3-dev \ | ||
gfortran flex bison wcslib-dev \ | ||
libboost-numpy-dev liblua5.3-dev \ | ||
casacore-dev aoflagger-dev \ | ||
# Build latest IDG master from source | ||
&& mkdir /idg && cd /idg && git clone https://gitlab.com/astron-idg/idg.git src \ | ||
&& mkdir build && cd build \ | ||
&& cmake -DCMAKE_INSTALL_PREFIX=/usr ../src \ | ||
&& make install -j2 \ | ||
# Build LOFARBeam | ||
&& mkdir /lofarbeam && cd /lofarbeam && git clone https://github.com/lofar-astron/LOFARBeam.git src \ | ||
&& mkdir build && cd build \ | ||
&& cmake -DCMAKE_INSTALL_PREFIX=/usr ../src -DPYTHON_EXECUTABLE=/usr/bin/python3 \ | ||
&& make install -j2 |
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,30 +1,11 @@ | ||
FROM ubuntu:20.04 | ||
|
||
RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && \ | ||
apt-get install -y \ | ||
libboost-python-dev libcfitsio-dev python3-dev python3-numpy cmake \ | ||
build-essential libhdf5-serial-dev libarmadillo-dev \ | ||
libboost-filesystem-dev libboost-system-dev libboost-date-time-dev \ | ||
libboost-program-options-dev libboost-test-dev \ | ||
libxml2-dev libpng-dev pkg-config \ | ||
libgtkmm-3.0-dev git libfftw3-dev \ | ||
gfortran flex bison wcslib-dev \ | ||
libboost-numpy-dev liblua5.3-dev \ | ||
casacore-dev aoflagger-dev | ||
|
||
# Build latest IDG master from source | ||
RUN mkdir /idg && cd /idg && git clone https://gitlab.com/astron-idg/idg.git src | ||
RUN mkdir /idg/build && cd /idg/build && cmake -DCMAKE_INSTALL_PREFIX=/usr ../src && make install -j2 | ||
|
||
# Build LOFARBeam | ||
RUN mkdir /lofarbeam && cd /lofarbeam && git clone https://github.com/lofar-astron/LOFARBeam.git src | ||
RUN mkdir /lofarbeam/build && cd /lofarbeam/build && cmake -DCMAKE_INSTALL_PREFIX=/usr ../src -DPYTHON_EXECUTABLE=/usr/bin/python3 && make install -j2 | ||
ARG BASE_TAG=latest | ||
FROM dppp_base:$BASE_TAG | ||
|
||
ADD . /src | ||
WORKDIR /src | ||
|
||
RUN mkdir /build && cd /build && cmake ../src | ||
RUN cd /build && make -j2 | ||
RUN cd /build && make install -j2 | ||
RUN DPPP | ||
RUN cd /build && CTEST_OUTPUT_ON_FAILURE=1 make test -j2 | ||
# Build DPPP | ||
RUN mkdir /build && cd /build \ | ||
&& cmake ../src \ | ||
&& make -j4 \ | ||
&& make install -j4 \ | ||
&& DPPP |
This file was deleted.
Oops, something went wrong.