aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2018-06-17 20:31:16 +0200
committerToni Uhlig <matzeton@googlemail.com>2018-06-17 20:31:16 +0200
commitb17a36a17abc0ec5e6466d0af4f33109d4ef169b (patch)
treebd862904d724b6220cfd559ce14a8869afa14853 /.gitlab-ci.yml
parent7c38b9781f60e4a5ae46092783a71a132506a5aa (diff)
added --test to test essential app functions (more in future) during startup/gitlab
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml9
1 files changed, 6 insertions, 3 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 93c2add..e76d760 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,6 +1,7 @@
stages:
- build
- - sast
+ - test
+ - analysis
build-debian:
image: debian:stable
@@ -9,6 +10,7 @@ build-debian:
- ./autogen.sh
- ./configure
- make
+ - valgrind --error-exitcode=1 ./src/potd --test --redirect 127.0.0.1:2222:127.0.0.1:22222 --protocol 127.0.0.1:22222:127.0.0.1:33333 --jail 127.0.0.1:33333
stage: build
artifacts:
paths:
@@ -22,7 +24,8 @@ build-arch:
- ./autogen.sh
- ./configure
- make
- stage: build
+ - valgrind --error-exitcode=1 ./src/potd --test --redirect 127.0.0.1:2222:127.0.0.1:22222 --protocol 127.0.0.1:22222:127.0.0.1:33333 --jail 127.0.0.1:33333
+ stage: test
artifacts:
paths:
- ./src/potd
@@ -38,7 +41,7 @@ sast:
allow_failure: true
services:
- docker:stable-dind
- stage: build
+ stage: analysis
script:
- export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
- docker run