Added first test code to Jenkinsfile
authorpeusterm <manuel.peuster@uni-paderborn.de>
Mon, 18 Sep 2017 15:24:33 +0000 (17:24 +0200)
committerpeusterm <manuel.peuster@uni-paderborn.de>
Mon, 18 Sep 2017 15:24:33 +0000 (17:24 +0200)
Signed-off-by: peusterm <manuel.peuster@uni-paderborn.de>
Jenkinsfile

index fa3135f..f6640a5 100644 (file)
@@ -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)...'
             }
         }
     }