Commit 27e1f32c authored by Pablo Gil Pereira's avatar Pablo Gil Pereira
Browse files

Dockerize CI

parent e3ca8b96
Pipeline #4656 passed with stages
in 2 minutes and 32 seconds
image: docker.nt.uni-saarland.de/docker/prrt-builder:20.04
variables:
PYPI_USER: SECURE
PYPI_PASSWORD: SECURE
......@@ -12,7 +14,7 @@ stages:
build:prrt:
stage: build
tags:
- cmake
- docker
artifacts:
name: "$CI_BUILD_REF_NAME$"
untracked: true
......@@ -22,9 +24,9 @@ build:prrt:
- which cmake
- which gcc
- which g++
- pip3 list --format=legacy | grep Cython
- pip3 list --format=legacy | grep numpy
- CC=gcc-5 CXX=g++-5 cmake .
- pip3 list | grep Cython
- pip3 list | grep numpy
- cmake .
- make
test:prrt_mem:
......@@ -32,7 +34,7 @@ test:prrt_mem:
dependencies:
- build:prrt
tags:
- valgrind
- docker
script:
- bash tests/memtest.sh
......@@ -41,25 +43,24 @@ test:prrt_functional:
dependencies:
- build:prrt
tags:
- bash
- docker
script:
- rm CMakeCache.txt
- CC=gcc-5 CXX=g++-5 cmake . -DPRRT_TESTS=1
- cmake . -DPRRT_TESTS=1
- make
- exec ./prrtTests
test:prrt_python_bindings:
stage: test
tags:
- bash
- python3
- docker
script:
- sh tests/build.sh
deploy:pypi:
stage: deploy
tags:
- python3
- docker
script:
- echo "[distutils]" >> ~/.pypirc
- echo "index-servers =" >> ~/.pypirc
......@@ -75,11 +76,11 @@ deploy:pypi:
deploy:profile:
stage: deploy
tags:
- gprof
- docker
script:
- ls -lahv
- rm CMakeCache.txt
- CC=gcc-5 CXX=g++-5 cmake . -DGPROF=1
- cmake . -DGPROF=1
- make
- bash profiling/profile.sh
artifacts:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment