2016-08-31 13:43:32 +00:00
|
|
|
#!groovy
|
2017-10-25 16:49:20 +00:00
|
|
|
// -*- mode: groovy -*-
|
2016-08-31 13:43:32 +00:00
|
|
|
|
2016-10-18 21:21:16 +00:00
|
|
|
def finalHook = {
|
|
|
|
runStage('store CT logs') {
|
|
|
|
archive '_build/test/logs/'
|
|
|
|
}
|
|
|
|
}
|
2016-08-31 13:43:32 +00:00
|
|
|
|
2016-10-18 21:21:16 +00:00
|
|
|
build('dmt_client', 'docker-host', finalHook) {
|
2016-08-31 13:43:32 +00:00
|
|
|
checkoutRepo()
|
2016-10-18 21:21:16 +00:00
|
|
|
runStage('load_builtils') {
|
2016-10-11 21:18:05 +00:00
|
|
|
withGithubSshCredentials {
|
|
|
|
sh 'git submodule update --init'
|
|
|
|
}
|
2016-08-31 13:43:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
def pipeDefault
|
2016-10-25 11:47:46 +00:00
|
|
|
def withWsCache
|
2016-08-31 13:43:32 +00:00
|
|
|
runStage('load pipeline') {
|
|
|
|
env.JENKINS_LIB = "builtils/jenkins_lib"
|
|
|
|
pipeDefault = load("${env.JENKINS_LIB}/pipeDefault.groovy")
|
2016-10-25 11:47:46 +00:00
|
|
|
withWsCache = load("${env.JENKINS_LIB}/withWsCache.groovy")
|
2016-08-31 13:43:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
pipeDefault() {
|
|
|
|
runStage('compile') {
|
|
|
|
withGithubPrivkey {
|
|
|
|
sh 'make wc_compile'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
runStage('lint') {
|
|
|
|
sh 'make wc_lint'
|
|
|
|
}
|
|
|
|
runStage('xref') {
|
|
|
|
sh 'make wc_xref'
|
|
|
|
}
|
2016-10-18 21:21:16 +00:00
|
|
|
runStage('dialyze') {
|
2020-06-29 12:39:25 +00:00
|
|
|
withWsCache("_build/dialyze/rebar3_23.0.1_plt") {
|
2016-10-25 11:47:46 +00:00
|
|
|
sh 'make wc_dialyze'
|
|
|
|
}
|
2016-10-18 21:21:16 +00:00
|
|
|
}
|
|
|
|
runStage('test') {
|
|
|
|
sh "make wdeps_test"
|
|
|
|
}
|
2016-08-31 13:43:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|