Skip to content

Commit

Permalink
Merge branch 'master' into indy-1.14.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jovfer authored Jan 30, 2020
2 parents 505b9a2 + 8da6493 commit 9d22b63
Show file tree
Hide file tree
Showing 118 changed files with 1,577 additions and 1,206 deletions.
17 changes: 16 additions & 1 deletion Jenkinsfile.cd
Original file line number Diff line number Diff line change
Expand Up @@ -356,8 +356,15 @@ def linuxLibindyBuild(file, env_name, network_name, full_testing) {

libindyBuildFinished[env_name] = true

echo "${env_name} Libindy Test: Test"
testEnv.inside("--network=${network_name}") {
echo "${env_name} Libindy Test: Test Libindy submodules"

for (component in ["libindy/indy-api-types", "libindy/indy-utils", "libindy/indy-wallet"]) {
testLibindyComponent(component)
}

echo "${env_name} Libindy Test: Test"

def features_args = full_testing ? "--features sodium_static" : "--features \"sodium_static only_high_cases\""

sh """
Expand All @@ -382,6 +389,14 @@ def linuxLibindyBuild(file, env_name, network_name, full_testing) {
}
}

def testLibindyComponent(directory) {
sh """
cd ${directory}
RUST_BACKTRACE=1 cargo test --release --no-run
RUST_BACKTRACE=1 RUST_LOG=indy::=debug,zmq=trace RUST_TEST_THREADS=1 TEST_POOL_IP=10.0.0.2 cargo test --release
"""
}

def linuxVcxBuild(file, env_name, network_name) {
def poolInst
try {
Expand Down
17 changes: 16 additions & 1 deletion Jenkinsfile.ci
Original file line number Diff line number Diff line change
Expand Up @@ -480,8 +480,15 @@ def linuxLibindyBuild(file, env_name, network_name, full_testing) {

libindyBuildFinished[env_name] = true

echo "${env_name} Libindy Test: Test"
testEnv.inside("--network=${network_name}") {
echo "${env_name} Libindy Test: Test Libindy submodules"

for (component in ["libindy/indy-api-types", "libindy/indy-utils", "libindy/indy-wallet"]) {
testLibindyComponent(component)
}

echo "${env_name} Libindy Test: Test"

def features_args = full_testing ? "--features sodium_static" : "--features \"sodium_static only_high_cases\""

sh """
Expand All @@ -506,6 +513,14 @@ def linuxLibindyBuild(file, env_name, network_name, full_testing) {
}
}

def testLibindyComponent(directory) {
sh """
cd ${directory}
RUST_BACKTRACE=1 cargo test --no-run
RUST_BACKTRACE=1 RUST_LOG=indy::=debug,zmq=trace RUST_TEST_THREADS=1 TEST_POOL_IP=10.0.0.2 cargo test
"""
}

def linuxVcxBuild(file, env_name, network_name) {
def poolInst
try {
Expand Down
Loading

0 comments on commit 9d22b63

Please sign in to comment.