machinery-erlang/Jenkinsfile
Sergei 81b0cb3ffe
CAPI-344: prepare for OTP 21 (#9)
* Use more recent versions of build_utils, build image tag and few dependencies in rebar.lock
* Test with more recent version of machinegun
* Fix type of transport_opts from woody_client/0 type (map)
* Rename net_opts from woody_server_config/0 type (map) to protocol_opts
* Add optional transport_opts to woody_server_config/0 type
2019-04-04 11:24:24 +03:00

54 lines
941 B
Groovy

#!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') {
withWsCache("_build/default/rebar3_21.1.1_plt") {
sh 'make wc_dialyze'
}
}
runStage('test') {
sh "make wdeps_test"
}
}
}
}