2018-05-30 14:45:42 +00:00
|
|
|
#!groovy
|
|
|
|
// -*- mode: groovy -*-
|
|
|
|
|
|
|
|
def finalHook = {
|
|
|
|
runStage('store CT logs') {
|
|
|
|
archive '_build/test/logs/'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
build('machinery', 'docker-host', finalHook) {
|
|
|
|
checkoutRepo()
|
|
|
|
loadBuildUtils()
|
|
|
|
|
|
|
|
def pipeDefault
|
|
|
|
def withWsCache
|
|
|
|
runStage('load pipeline') {
|
|
|
|
env.JENKINS_LIB = "build_utils/jenkins_lib"
|
|
|
|
pipeDefault = load("${env.JENKINS_LIB}/pipeDefault.groovy")
|
|
|
|
withWsCache = load("${env.JENKINS_LIB}/withWsCache.groovy")
|
|
|
|
}
|
|
|
|
|
|
|
|
pipeDefault() {
|
|
|
|
|
|
|
|
if (!masterlikeBranch()) {
|
|
|
|
|
|
|
|
runStage('compile') {
|
|
|
|
withGithubPrivkey {
|
|
|
|
sh 'make wc_compile'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
runStage('lint') {
|
|
|
|
sh 'make wc_lint'
|
|
|
|
}
|
|
|
|
|
|
|
|
runStage('xref') {
|
|
|
|
sh 'make wc_xref'
|
|
|
|
}
|
|
|
|
|
|
|
|
runStage('dialyze') {
|
2020-05-29 11:00:09 +00:00
|
|
|
withWsCache("_build/default/rebar3_22.3.1_plt") {
|
2018-05-30 14:45:42 +00:00
|
|
|
sh 'make wc_dialyze'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
runStage('test') {
|
|
|
|
sh "make wdeps_test"
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|