mirror of
https://github.com/valitydev/woody_erlang_user_identity.git
synced 2024-11-06 00:45:24 +00:00
Switch to Erlang pipe (#10)
This commit is contained in:
parent
a73d40b053
commit
d6d8c570e6
34
Jenkinsfile
vendored
34
Jenkinsfile
vendored
@ -10,34 +10,18 @@ build('woody_user_identity', 'docker-host', finalHook) {
|
||||
checkoutRepo()
|
||||
loadBuildUtils()
|
||||
|
||||
def pipeDefault
|
||||
def withWsCache
|
||||
def pipeErlangLib
|
||||
runStage('load pipeline') {
|
||||
env.JENKINS_LIB = "build_utils/jenkins_lib"
|
||||
pipeDefault = load("${env.JENKINS_LIB}/pipeDefault.groovy")
|
||||
withWsCache = load("${env.JENKINS_LIB}/withWsCache.groovy")
|
||||
env.SH_TOOLS = "build_utils/sh"
|
||||
pipeErlangLib = load("${env.JENKINS_LIB}/pipeErlangLib.groovy")
|
||||
}
|
||||
|
||||
pipeDefault() {
|
||||
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.3.8.4_plt") {
|
||||
sh 'make wc_dialyze'
|
||||
}
|
||||
}
|
||||
runStage('test') {
|
||||
sh "make wc_test"
|
||||
}
|
||||
}
|
||||
// NOTE: Parallel pipeline almost always fails because of
|
||||
// rebar3's design (it uses link for libraries, so
|
||||
// parallel runs with different profiles brake each other)
|
||||
// To prevent this use sequential pipleine here
|
||||
|
||||
pipeErlangLib.runPipe(false)
|
||||
}
|
||||
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 4e6aae0f31885d3c56d09c72de7ef8d432149dbf
|
||||
Subproject commit 540183862bc9fd04682e226de2056a320fd44be9
|
Loading…
Reference in New Issue
Block a user