mirror of
https://github.com/valitydev/cowboy_cors.git
synced 2024-11-06 08:25:17 +00:00
Merge pull request #5 from rbkmoney/update-build_utils
Update build utils
This commit is contained in:
commit
5a3b084fb8
42
Jenkinsfile
vendored
42
Jenkinsfile
vendored
@ -11,42 +11,18 @@ build('cowboy_cors', '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() {
|
||||
// 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
|
||||
|
||||
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 wc_test"
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
pipeErlangLib.runPipe(false)
|
||||
}
|
||||
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 870b70a63af18fc7a02c9ff26b06132d2b1993cb
|
||||
Subproject commit 540183862bc9fd04682e226de2056a320fd44be9
|
Loading…
Reference in New Issue
Block a user