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: variables:
PYPI_USER: SECURE PYPI_USER: SECURE
PYPI_PASSWORD: SECURE PYPI_PASSWORD: SECURE
...@@ -12,7 +14,7 @@ stages: ...@@ -12,7 +14,7 @@ stages:
build:prrt: build:prrt:
stage: build stage: build
tags: tags:
- cmake - docker
artifacts: artifacts:
name: "$CI_BUILD_REF_NAME$" name: "$CI_BUILD_REF_NAME$"
untracked: true untracked: true
...@@ -22,9 +24,9 @@ build:prrt: ...@@ -22,9 +24,9 @@ build:prrt:
- which cmake - which cmake
- which gcc - which gcc
- which g++ - which g++
- pip3 list --format=legacy | grep Cython - pip3 list | grep Cython
- pip3 list --format=legacy | grep numpy - pip3 list | grep numpy
- CC=gcc-5 CXX=g++-5 cmake . - cmake .
- make - make
test:prrt_mem: test:prrt_mem:
...@@ -32,7 +34,7 @@ test:prrt_mem: ...@@ -32,7 +34,7 @@ test:prrt_mem:
dependencies: dependencies:
- build:prrt - build:prrt
tags: tags:
- valgrind - docker
script: script:
- bash tests/memtest.sh - bash tests/memtest.sh
...@@ -41,25 +43,24 @@ test:prrt_functional: ...@@ -41,25 +43,24 @@ test:prrt_functional:
dependencies: dependencies:
- build:prrt - build:prrt
tags: tags:
- bash - docker
script: script:
- rm CMakeCache.txt - rm CMakeCache.txt
- CC=gcc-5 CXX=g++-5 cmake . -DPRRT_TESTS=1 - cmake . -DPRRT_TESTS=1
- make - make
- exec ./prrtTests - exec ./prrtTests
test:prrt_python_bindings: test:prrt_python_bindings:
stage: test stage: test
tags: tags:
- bash - docker
- python3
script: script:
- sh tests/build.sh - sh tests/build.sh
deploy:pypi: deploy:pypi:
stage: deploy stage: deploy
tags: tags:
- python3 - docker
script: script:
- echo "[distutils]" >> ~/.pypirc - echo "[distutils]" >> ~/.pypirc
- echo "index-servers =" >> ~/.pypirc - echo "index-servers =" >> ~/.pypirc
...@@ -75,11 +76,11 @@ deploy:pypi: ...@@ -75,11 +76,11 @@ deploy:pypi:
deploy:profile: deploy:profile:
stage: deploy stage: deploy
tags: tags:
- gprof - docker
script: script:
- ls -lahv - ls -lahv
- rm CMakeCache.txt - rm CMakeCache.txt
- CC=gcc-5 CXX=g++-5 cmake . -DGPROF=1 - cmake . -DGPROF=1
- make - make
- bash profiling/profile.sh - bash profiling/profile.sh
artifacts: artifacts:
......
Supports Markdown
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