Jenkinsfile
author Frank Bessou <frank.bessou@logilab.fr>
Wed, 29 Mar 2017 16:54:27 +0200
changeset 52 8cf6ce9a5e66
parent 51 f34d8c3f3156
child 132 2b6ce8199a46
permissions -rw-r--r--
Add junit reporter to karma for Jenkins

#!groovy
node('selenium') {
    stage('Setup') {
        checkout scm

        sh 'npm install'
    }

    stage('Lint') {
        sh 'npm run lint'
    }

    stage('Tests') {
        sh 'npm run test'
        junit 'reports/karma.junit'
    }
}