Skip to content
This repository was archived by the owner on Apr 17, 2019. It is now read-only.

Commit 4e9fac8

Browse files
authored
Merge pull request #2132 from hyperledger/develop
Hyperledger Iroha v1.0 Release Candidate 4
2 parents 731d2c7 + d4fce45 commit 4e9fac8

File tree

200 files changed

+2588
-6480
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

200 files changed

+2588
-6480
lines changed

.jenkinsci-new/builders/x64-linux-build-steps.groovy

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ def testSteps(String buildDir, List environment, String testList) {
4141
}
4242

4343
def buildSteps(int parallelism, List compilerVersions, String build_type, boolean specialBranch, boolean coverage,
44-
boolean testing, String testList, boolean cppcheck, boolean sonar, boolean docs, boolean packagebuild, boolean sanitize, boolean fuzzing, List environment) {
44+
boolean testing, String testList, boolean cppcheck, boolean sonar, boolean docs, boolean packagebuild,
45+
boolean sanitize, boolean fuzzing, boolean useBTF, List environment) {
4546
withEnv(environment) {
4647
scmVars = checkout scm
4748
def build = load '.jenkinsci-new/build.groovy'
@@ -99,7 +100,8 @@ def buildSteps(int parallelism, List compilerVersions, String build_type, boolea
99100
-DTESTING=${cmakeBooleanOption[testing]} \
100101
-DFUZZING=${cmakeBooleanOption[fuzzing]} \
101102
-DPACKAGE_DEB=${cmakeBooleanOption[packagebuild]} \
102-
-DPACKAGE_TGZ=${cmakeBooleanOption[packagebuild]} ${cmakeOptions}")
103+
-DPACKAGE_TGZ=${cmakeBooleanOption[packagebuild]} \
104+
-DUSE_BTF=${cmakeBooleanOption[useBTF]} ${cmakeOptions}")
103105
build.cmakeBuild(buildDir, cmakeBuildOptions, parallelism)
104106
}
105107
if (testing) {

.jenkinsci-new/builders/x64-mac-build-steps.groovy

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ def testSteps(scmVars, String buildDir, List environment, String testList) {
3333
}
3434
}
3535

36-
def buildSteps(int parallelism, List compilerVersions, String build_type, boolean coverage, boolean testing, String testList, boolean packagebuild, List environment) {
36+
def buildSteps(int parallelism, List compilerVersions, String build_type, boolean coverage, boolean testing, String testList,
37+
boolean packagebuild, boolean useBTF, List environment) {
3738
withEnv(environment) {
3839
scmVars = checkout scm
3940
def build = load '.jenkinsci-new/build.groovy'
@@ -42,7 +43,7 @@ def buildSteps(int parallelism, List compilerVersions, String build_type, boolea
4243
buildDir = 'build'
4344
compilers = vars.compilerMapping()
4445
cmakeBooleanOption = [ (true): 'ON', (false): 'OFF' ]
45-
cmakeBuildOptions = ""
46+
cmakeBuildOptions = ""
4647

4748
if (packagebuild){
4849
cmakeBuildOptions = " --target package "
@@ -58,7 +59,8 @@ def buildSteps(int parallelism, List compilerVersions, String build_type, boolea
5859
-DCMAKE_BUILD_TYPE=${build_type} \
5960
-DCOVERAGE=${cmakeBooleanOption[coverage]} \
6061
-DTESTING=${cmakeBooleanOption[testing]} \
61-
-DPACKAGE_TGZ=${cmakeBooleanOption[packagebuild]} ")
62+
-DPACKAGE_TGZ=${cmakeBooleanOption[packagebuild]} \
63+
-DUSE_BTF=${cmakeBooleanOption[useBTF]} ")
6264

6365
build.cmakeBuild(buildDir, cmakeBuildOptions, parallelism)
6466
}

.jenkinsci-new/text-variables.groovy

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,15 @@
77
// Text variable for jenkins job description
88
//
99

10-
param_chose_opt = 'Default\nBranch commit\nOn open PR\nCommit in Open PR\nBefore merge to trunk\nBefore merge develop\nBefore merge master\nNightly build\nCustom command'
10+
param_chose_opt = 'Default\nBranch commit\nOn open PR\nCommit in Open PR\nBefore merge to trunk\nCustom command'
1111

1212
param_descriptions = """
1313
<p>
1414
<strong>Default</strong> - will automatically chose the correct one based on branch name and build number<br />
1515
<strong>Branch commit</strong> - Linux/gcc v5; Test: Smoke, Unit;<br />
1616
<strong>On open PR -</strong> Linux/gcc v5, MacOS/appleclang; Test: Smoke, Unit; Coverage; Analysis: cppcheck, sonar;<br />
1717
<strong>Commit in Open PR</strong> - Same as Branch commit<br />
18-
<strong>Before merge to trunk</strong> - Linux/gcc v5 v7, Linux/clang v6 v7, MacOS/appleclang; Test: ALL; Coverage; Analysis: cppcheck, sonar; Build type: Debug when Release<br />
19-
<strong>Before merge develop</strong> - Not implemented<br />
20-
<strong>Before merge master</strong> - Not implemented<br />
21-
<strong>Nightly build</strong> - Not implemented<br />
18+
<strong>Before merge to trunk</strong> - Linux/gcc v5 v7, Linux/clang v6 v7, MacOS/appleclang; Test: ALL; Coverage; Analysis: cppcheck, sonar; Build type: Debug when Release; useBTF=true<br />
2219
<strong>Custom command</strong> - enter command below, Ex: build_type='Release'; testing=false;<br />
2320
</p>
2421
"""
@@ -96,7 +93,7 @@ cmd_description = """
9693
<p><strong>sanitize</strong> = false&nbsp;</p>
9794
<ul>
9895
<li>
99-
<p>Adds cmakeOptions&nbsp;-DSANITIZE='address;leak'&nbsp;</p>
96+
<p>Adds cmakeOptions&nbsp;-DSANITIZE='address;leak'</p>
10097
</li>
10198
<li>
10299
<p>Ex:&nbsp;sanitize=true;</p>
@@ -115,10 +112,10 @@ cmd_description = """
115112
</ul>
116113
</li>
117114
<li>
118-
<p><span style="color: #ff0000;"><strong>fuzzing</strong></span> = false&nbsp;</p>
115+
<p><span style="color: #ff0000;"><strong>fuzzing</strong></span> = false</p>
119116
<ul>
120117
<li>
121-
<p>builds fuzzing tests, work only with&nbsp;x64linux_compiler_list = ['clang6']&nbsp;</p>
118+
<p>builds fuzzing tests, work only with&nbsp;x64linux_compiler_list = ['clang6']</p>
122119
</li>
123120
<li>
124121
<p>Ex:&nbsp;fuzzing=true; x64linux_compiler_list= ['clang6']; testing = true; testList = "(None)"</p>
@@ -137,7 +134,7 @@ cmd_description = """
137134
</ul>
138135
</li>
139136
<li>
140-
<p><span style="color: #ff0000;"><strong>coverage</strong></span> = false&nbsp;</p>
137+
<p><span style="color: #ff0000;"><strong>coverage</strong></span> = false </p>
141138
<ul>
142139
<li>
143140
<p>Runs coverage, will run only if&nbsp;testing = true&nbsp;</p>
@@ -148,7 +145,7 @@ cmd_description = """
148145
</ul>
149146
</li>
150147
<li>
151-
<p><strong>doxygen</strong> = false (or = true if master|develop|dev )&nbsp;</p>
148+
<p><strong>doxygen</strong> = false (or = true if master|develop|dev ) </p>
152149
<ul>
153150
<li>
154151
<p>Build doxygen, if specialBranch== true will publish, if not specialBranch will upload it to jenkins,</p>
@@ -173,15 +170,15 @@ cmd_description = """
173170
<p><span style="color: #ff0000;"><strong>packageBuild</strong></span> = false&nbsp;</p>
174171
<ul>
175172
<li>
176-
<p>Build package Work only with&nbsp;build_type = 'Release'&nbsp;and&nbsp;testing=false&nbsp;</p>
173+
<p>Build package Work only with&nbsp;build_type = 'Release'&nbsp;and&nbsp;testing=false </p>
177174
</li>
178175
<li>
179176
<p>Ex:&nbsp;packageBuild = true;build_type = 'Release';testing=false</p>
180177
</li>
181178
</ul>
182179
</li>
183180
<li>
184-
<p><strong>pushDockerTag</strong> = 'not-supposed-to-be-pushed'(or = latest if master, or = develop if develop|dev)&nbsp;-</p>
181+
<p><strong>pushDockerTag</strong> = 'not-supposed-to-be-pushed'(or = latest if master, or = develop if develop|dev)</p>
185182
<ul>
186183
<li>
187184
<p>if&nbsp;packagePush=true&nbsp;it the name of docker tag that will be pushed</p>
@@ -192,7 +189,7 @@ cmd_description = """
192189
</ul>
193190
</li>
194191
<li>
195-
<p><strong>packagePush</strong> = false (or = true if master|develop|dev )&nbsp;-</p>
192+
<p><strong>packagePush</strong> = false (or = true if master|develop|dev )</p>
196193
<ul>
197194
<li>
198195
<p>push all packages and docker to the artifactory and docker hub</p>
@@ -202,6 +199,17 @@ cmd_description = """
202199
</li>
203200
</ul>
204201
</li>
202+
<li>
203+
<p><strong>useBTF</strong> = false </p>
204+
<ul>
205+
<li>
206+
<p>Sets -DUSE_BTF=ON for cmake configuration</p>
207+
</li>
208+
<li>
209+
<p>Ex:useBTF=true</p>
210+
</li>
211+
</ul>
212+
</li>
205213
<li>
206214
<p><strong>specialBranch</strong> = false (or = true if master|develop|dev ),</p>
207215
<ul>

.jenkinsci/bindings.groovy

Lines changed: 0 additions & 134 deletions
This file was deleted.

CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,6 @@ option(PACKAGE_TGZ "Create TGZ package" OFF)
7979
option(PACKAGE_RPM "Create RPM package" OFF)
8080
option(PACKAGE_DEB "Create DEB package" OFF)
8181
option(ENABLE_LIBS_PACKAGING "Enable libs packaging" ON)
82-
option(SWIG_JAVA "Generate Swig Java bindings" OFF)
83-
option(SWIG_CSHARP "Generate Swig C# bindings" OFF)
8482
option(USE_LIBIROHA "Use external model library" OFF)
8583

8684

@@ -101,7 +99,6 @@ if(PACKAGE_TGZ OR PACKAGE_ZIP OR PACKAGE_RPM OR PACKAGE_DEB)
10199
set(USE_BTF OFF)
102100
set(COVERAGE OFF)
103101
set(FUZZING OFF)
104-
set(SWIG_JAVA OFF)
105102
endif()
106103

107104
message(STATUS "-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}")
@@ -115,8 +112,6 @@ message(STATUS "-DPACKAGE_TGZ=${PACKAGE_TGZ}")
115112
message(STATUS "-DPACKAGE_RPM=${PACKAGE_RPM}")
116113
message(STATUS "-DPACKAGE_DEB=${PACKAGE_DEB}")
117114
message(STATUS "-DENABLE_LIBS_PACKAGING=${ENABLE_LIBS_PACKAGING}")
118-
message(STATUS "-DSWIG_JAVA=${SWIG_JAVA}")
119-
message(STATUS "-DSWIG_CSHARP=${SWIG_CSHARP}")
120115

121116
set(IROHA_SCHEMA_DIR "${CMAKE_CURRENT_SOURCE_DIR}/schema")
122117
set(SM_SCHEMA_DIR "${PROJECT_SOURCE_DIR}/shared_model/schema")

CONTRIBUTING.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ Read our [C++ Style Guide](#c-style-guide) and start with beginner-friendly issu
8888

8989
- **Document new code** based on the [Documentation Styleguide](#documentation-styleguide)
9090

91+
- When working with **PRs from forks** check [this manual](https://help.github.com/articles/checking-out-pull-requests-locally)
92+
9193

9294
## Styleguides
9395

0 commit comments

Comments
 (0)