2018-02-09 15:50:47 +00:00
|
|
|
# Is performed before the scripts in the stages step
|
|
|
|
before_script:
|
|
|
|
- source /etc/profile
|
|
|
|
|
|
|
|
# Defines stages which are to be executed
|
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
- test
|
|
|
|
|
|
|
|
# Stage "build"
|
2018-02-09 18:44:45 +00:00
|
|
|
debian-jessie-build:
|
2018-02-09 18:34:15 +00:00
|
|
|
image: debian:8.10-slim
|
|
|
|
stage: build
|
|
|
|
script:
|
|
|
|
- apt-get update
|
2018-02-09 18:37:02 +00:00
|
|
|
- apt-get install -y --no-install-recommends build-essential cmake git libboost-dev libboost-date-time-dev libboost-system-dev libboost-filesystem-dev libboost-thread-dev libboost-chrono-dev libboost-serialization-dev liblog4cpp5-dev gnuradio-dev libblas-dev liblapack-dev libarmadillo-dev libgflags-dev libgoogle-glog-dev libgnutls-openssl-dev python-mako python-six libmatio-dev libgtest-dev
|
2018-02-09 18:34:15 +00:00
|
|
|
- cd build
|
|
|
|
- cmake ..
|
|
|
|
- make -j2
|
|
|
|
- make install
|
|
|
|
|
2018-02-09 15:50:47 +00:00
|
|
|
|
2018-02-09 21:17:08 +00:00
|
|
|
debian-stretch-amd64-build:
|
2018-02-09 18:13:51 +00:00
|
|
|
image: debian:9.3-slim
|
|
|
|
stage: build
|
2018-02-09 18:34:15 +00:00
|
|
|
script:
|
|
|
|
- apt-get update
|
|
|
|
- apt-get install -y --no-install-recommends build-essential cmake git libboost-dev libboost-date-time-dev libboost-system-dev libboost-filesystem-dev libboost-thread-dev libboost-chrono-dev libboost-serialization-dev liblog4cpp5-dev gnuradio-dev libblas-dev liblapack-dev libarmadillo-dev libgflags-dev libgoogle-glog-dev libgnutls-openssl-dev python-mako python-six libmatio-dev googletest
|
|
|
|
- cd build
|
|
|
|
- cmake ..
|
|
|
|
- make -j2
|
|
|
|
- make install
|
|
|
|
|
2018-02-09 21:35:38 +00:00
|
|
|
|
2018-02-09 21:17:08 +00:00
|
|
|
debian-stretch-i386-build:
|
|
|
|
image: i386/debian:9.3-slim
|
|
|
|
stage: build
|
|
|
|
script:
|
|
|
|
- apt-get update
|
|
|
|
- apt-get install -y --no-install-recommends build-essential cmake git libboost-dev libboost-date-time-dev libboost-system-dev libboost-filesystem-dev libboost-thread-dev libboost-chrono-dev libboost-serialization-dev liblog4cpp5-dev gnuradio-dev libblas-dev liblapack-dev libarmadillo-dev libgflags-dev libgoogle-glog-dev libgnutls-openssl-dev python-mako python-six libmatio-dev googletest
|
|
|
|
- cd build
|
|
|
|
- cmake ..
|
|
|
|
- make -j2
|
|
|
|
- make install
|
|
|
|
|
|
|
|
|
2018-02-09 18:44:45 +00:00
|
|
|
debian-buster-build:
|
|
|
|
image: debian:buster-slim
|
|
|
|
stage: build
|
|
|
|
script:
|
|
|
|
- apt-get update
|
|
|
|
- apt-get install -y --no-install-recommends build-essential cmake git libboost-dev libboost-date-time-dev libboost-system-dev libboost-filesystem-dev libboost-thread-dev libboost-chrono-dev libboost-serialization-dev liblog4cpp5-dev gnuradio-dev libblas-dev liblapack-dev libarmadillo-dev libgflags-dev libgoogle-glog-dev libgnutls-openssl-dev python-mako python-six libmatio-dev googletest
|
|
|
|
- cd build
|
|
|
|
- cmake ..
|
|
|
|
- make -j2
|
|
|
|
- make install
|
|
|
|
|
|
|
|
|
|
|
|
ubuntu-16.04-build:
|
2018-02-09 18:34:15 +00:00
|
|
|
image: ubuntu:xenial
|
|
|
|
stage: build
|
2018-02-09 18:13:51 +00:00
|
|
|
script:
|
|
|
|
- apt-get update
|
2018-02-09 18:44:45 +00:00
|
|
|
- apt-get install -y --no-install-recommends build-essential cmake git libboost-dev libboost-date-time-dev libboost-system-dev libboost-filesystem-dev libboost-thread-dev libboost-chrono-dev libboost-serialization-dev liblog4cpp5-dev gnuradio-dev libblas-dev liblapack-dev libarmadillo-dev libgflags-dev libgoogle-glog-dev libgnutls-openssl-dev python-mako python-six libmatio-dev libgtest-dev
|
2018-02-09 18:13:51 +00:00
|
|
|
- cd build
|
|
|
|
- cmake ..
|
|
|
|
- make -j2
|
|
|
|
- make install
|
|
|
|
|
2018-02-09 18:34:15 +00:00
|
|
|
|
2018-02-09 18:44:45 +00:00
|
|
|
ubuntu-18.04-build:
|
2018-02-09 18:34:15 +00:00
|
|
|
image: ubuntu:bionic
|
|
|
|
stage: build
|
|
|
|
script:
|
|
|
|
- apt-get update
|
|
|
|
- apt-get install -y --no-install-recommends build-essential cmake git libboost-dev libboost-date-time-dev libboost-system-dev libboost-filesystem-dev libboost-thread-dev libboost-chrono-dev libboost-serialization-dev liblog4cpp5-dev gnuradio-dev libblas-dev liblapack-dev libarmadillo-dev libgflags-dev libgoogle-glog-dev libgnutls-openssl-dev python-mako python-six libmatio-dev googletest
|
|
|
|
- cd build
|
|
|
|
- cmake ..
|
|
|
|
- make -j2
|
|
|
|
- make install
|
|
|
|
|
2018-02-09 22:48:17 +00:00
|
|
|
docker-gnsssdr:
|
|
|
|
image: docker:latest
|
2018-02-09 22:49:48 +00:00
|
|
|
stage: build
|
2018-02-09 22:48:17 +00:00
|
|
|
services:
|
|
|
|
- docker:dind
|
|
|
|
before_script:
|
|
|
|
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
|
|
|
|
script:
|
|
|
|
- mkdir docker-build
|
|
|
|
- cd docker-build
|
|
|
|
- git clone https://github.com/carlesfernandez/docker-gnsssdr
|
|
|
|
- cd docker-gnsssdr
|
|
|
|
- docker build -t --pull carlesfernandez/docker-gnsssdr .
|
|
|
|
- docker push "$CI_REGISTRY_IMAGE"
|
|
|
|
|
2018-02-09 21:35:38 +00:00
|
|
|
|
2018-02-09 15:50:47 +00:00
|
|
|
# Stage "test"
|
|
|
|
run-test:
|
2018-02-09 19:39:39 +00:00
|
|
|
image: debian:9.3-slim
|
2018-02-09 15:50:47 +00:00
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- apt-get update
|
2018-02-09 19:39:39 +00:00
|
|
|
- apt-get install -y --no-install-recommends build-essential cmake git libboost-dev libboost-date-time-dev libboost-system-dev libboost-filesystem-dev libboost-thread-dev libboost-chrono-dev libboost-serialization-dev liblog4cpp5-dev gnuradio-dev libblas-dev liblapack-dev libarmadillo-dev libgflags-dev libgoogle-glog-dev libgnutls-openssl-dev python-mako python-six libmatio-dev googletest
|
2018-02-09 15:50:47 +00:00
|
|
|
- mkdir build-test
|
|
|
|
- cd build-test
|
|
|
|
- cmake ..
|
|
|
|
- make -j2
|
|
|
|
- make check
|
|
|
|
- ../install/run_tests --gtest_output=xml
|
|
|
|
- mv *.xml ../build/
|
|
|
|
- cd ..
|
|
|
|
- rm -rf build-test
|
|
|
|
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- build/*.xml
|