Skip to content

Commit

Permalink
add Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
srz-zumix committed Apr 5, 2017
1 parent 3b7ebd7 commit 4d1a6f9
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions Jenkinsfile
@@ -0,0 +1,51 @@
#!/usr/bin/env groovy

def checkout() {
try {
checkout scm
} catch(e) {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://github.com/srz-zumix/iutest.git']]])
}
}

node {
properties([
parameters([
booleanParam(
defaultValue: false,
description: 'run config tests',
name: 'runConfigTests'
)
])
])

step([$class: 'GitHubSetCommitStatusBuilder'])

stage('checkout') {
checkout()
}
stage('main-test') {
sh 'cd test && make test'
}
stage('config-test') {
if (params.runConfigTests) {
stage('disable_feature_param') {
sh 'cd test/configcheck && make disable_feature_param'
}
stage('disable_feature') {
sh 'cd test/configcheck && make disable_feature_1'
}
stage('disable_spec') {
sh 'cd test/configcheck && make disable_spec'
}
stage('combine') {
sh 'cd test/configcheck && make combine'
}
stage('nofeature') {
sh 'cd test/configcheck && make nofeature'
}
} else {
echo 'skip config tests'
}
}
}

0 comments on commit 4d1a6f9

Please sign in to comment.