Jenkinsfile
author Frank Bessou <frank.bessou@logilab.fr>
Wed, 19 Apr 2017 11:50:55 +0200
changeset 132 2b6ce8199a46
parent 52 8cf6ce9a5e66
permissions -rw-r--r--
Add a 'test:ci' script with not colored output for Jenkins

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

        sh 'npm install'
    }

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

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