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') {
|
2019-06-20 18:40:59 +00:00
|
|
|
withWsCache("_build/default/rebar3_21.3.8.4_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
|
|
|
}
|
|
|
|
|
|
|
|
}
|