mirror of
https://github.com/valitydev/woody_erlang.git
synced 2024-11-06 02:15:19 +00:00
Switch to Erlang lib pipe (#141)
* Switch to Erlang lib pipe * fix damsel URL * Switch to sequential * Fix URL for cg_mon * Use parallel pipe * Fix URL to folsom * Fix path to plt * Update build_utils * Back to sequential * Add note * Add named params * Switch back * Typo
This commit is contained in:
parent
a434e55e14
commit
baa3db27da
51
Jenkinsfile
vendored
51
Jenkinsfile
vendored
@ -1,5 +1,20 @@
|
||||
#!groovy
|
||||
// -*- mode: groovy -*-
|
||||
//
|
||||
// Copyright 2017 RBKmoney
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
//
|
||||
|
||||
def finalHook = {
|
||||
runStage('store CT logs') {
|
||||
@ -11,35 +26,17 @@ build('woody_erlang', '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') {
|
||||
withGithubPrivkey {
|
||||
withWsCache("_build/test/rebar3_23.0.1_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, false, 'test')
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 4e6aae0f31885d3c56d09c72de7ef8d432149dbf
|
||||
Subproject commit 5cb25f049c719a608276a99fc4fbe852187019ca
|
@ -69,7 +69,7 @@
|
||||
{deps, [
|
||||
{proper, "1.2.0"},
|
||||
{how_are_you , {git, "https://github.com/rbkmoney/how_are_you.git", {ref, "8f11d17"}}},
|
||||
{damsel , {git, "git@github.com:rbkmoney/damsel.git", {ref, "8911ac3"}}},
|
||||
{damsel , {git, "https://github.com/rbkmoney/damsel.git", {ref, "8911ac3"}}},
|
||||
{mg_proto , {git, "https://github.com/rbkmoney/machinegun_proto.git", {ref, "ebae56f"}}}
|
||||
]},
|
||||
{dialyzer, [
|
||||
|
@ -3,13 +3,13 @@
|
||||
{<<"cache">>,{pkg,<<"cache">>,<<"2.2.0">>},0},
|
||||
{<<"certifi">>,{pkg,<<"certifi">>,<<"2.5.2">>},1},
|
||||
{<<"cg_mon">>,
|
||||
{git,"git@github.com:rbkmoney/cg_mon.git",
|
||||
{git,"https://github.com/rbkmoney/cg_mon.git",
|
||||
{ref,"5a87a37694e42b6592d3b4164ae54e0e87e24e18"}},
|
||||
1},
|
||||
{<<"cowboy">>,{pkg,<<"cowboy">>,<<"2.7.0">>},0},
|
||||
{<<"cowlib">>,{pkg,<<"cowlib">>,<<"2.8.0">>},1},
|
||||
{<<"folsom">>,
|
||||
{git,"git@github.com:folsom-project/folsom.git",
|
||||
{git,"https://github.com/folsom-project/folsom.git",
|
||||
{ref,"9309bad9ffadeebbefe97521577c7480c7cfcd8a"}},
|
||||
1},
|
||||
{<<"genlib">>,
|
||||
|
Loading…
Reference in New Issue
Block a user