From: peusterm Date: Mon, 18 Sep 2017 15:24:33 +0000 (+0200) Subject: Added first test code to Jenkinsfile X-Git-Tag: v3.1~5^2~2 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=9a30bd63f41b3280b6b9b4238f36e73313bf95a6;p=osm%2Fvim-emu.git Added first test code to Jenkinsfile Signed-off-by: peusterm --- diff --git a/Jenkinsfile b/Jenkinsfile index fa3135f..f6640a5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,19 +4,27 @@ pipeline { agent any stages { + stage('Checkout') { + steps { + echo 'Checkout...' + checkout scm + } + } stage('Build') { steps { - echo 'Building..' + echo 'Building...' + sh "docker build --no-cache -t test-son-emu-img ." } } stage('Test') { steps { - echo 'Testing..' + echo 'Testing...' + sh "docker run --name son-emu --rm --privileged --pid='host' -w '/son-emu' -v /var/run/docker.sock:/var/run/docker.sock test-son-emu-img 'py.test -v src/emuvim/test/unittests'" } } - stage('Deploy') { + stage('Package') { steps { - echo 'Deploying....' + echo 'Packaging (Docker-image)...' } } }