-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
242 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Integration testing | ||
on: push | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Integration testing | ||
run: | | ||
docker-compose up --exit-code-from litebtc --quiet-pull | ||
- name: Upload log | ||
uses: actions/upload-artifact@v2 | ||
if: failure() | ||
with: | ||
path: | | ||
**/lite-bitcoin-rpc.log | ||
lib/build/reports/tests/test | ||
name: ${{ github.run_number }} | ||
- name: Upload test coverage | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos | ||
#files: lib/build/reports/jacoco/*.xml # optional | ||
flags: unittests # optional | ||
name: codecov-umbrella # optional | ||
fail_ci_if_error: true # optional (default = false) | ||
- name: Publish Unit Test Results | ||
uses: EnricoMi/publish-unit-test-result-action@v1 | ||
if: always() | ||
with: | ||
files: lib/build/test-results/**/*.xml |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,4 @@ | ||
GROUP_ID=io.github.clightning4j | ||
ARTIFACT_ID=lite-bitcoin-rpc | ||
VERSION=0.0.1-rc1-SNAPSHOT | ||
MODULE_NAME=io.clightning4j.litebitcoinrpc | ||
|
||
#Information abaut the maven repository | ||
signing.keyId= | ||
signing.password= | ||
signing.secretKeyRingFile= | ||
ossrhUsername= | ||
ossrhPassword= | ||
VERSION=0.0.1-rc1 | ||
MODULE_NAME=io.clightning4j.litebitcoinrpc |
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 8 additions & 1 deletion
9
lib/src/main/java/io/github/clightning4j/litebtc/exceptions/BitcoinCoreException.java
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
package io.github.clightning4j.litebtc.exceptions; | ||
|
||
public class BitcoinCoreException extends Exception { | ||
public BitcoinCoreException(String message) { | ||
private int code; | ||
|
||
public BitcoinCoreException(int code, String message) { | ||
super(message); | ||
this.code = code; | ||
} | ||
|
||
public int getCode() { | ||
return code; | ||
} | ||
} |
Empty file modified
0
lib/src/main/java/io/github/clightning4j/litebtc/exceptions/LiteBitcoinRPCException.java
100644 → 100755
Empty file.
Empty file modified
0
lib/src/main/java/io/github/clightning4j/litebtc/exceptions/UtilsExceptions.java
100644 → 100755
Empty file.
Empty file modified
0
lib/src/main/java/io/github/clightning4j/litebtc/model/bitcoin/BlockchainInfo.java
100644 → 100755
Empty file.
Empty file modified
0
lib/src/main/java/io/github/clightning4j/litebtc/model/generic/Configuration.java
100644 → 100755
Empty file.
Empty file modified
0
lib/src/main/java/io/github/clightning4j/litebtc/model/generic/Parameters.java
100644 → 100755
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file modified
0
lib/src/main/java/io/github/clightning4j/litebtc/utils/gson/JsonConverter.java
100644 → 100755
Empty file.
Empty file modified
0
lib/src/main/java/io/github/clightning4j/litebtc/utils/okhttp/BitcoinAuthenticator.java
100644 → 100755
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<configuration scan="true"> | ||
<appender name="FILE" class="ch.qos.logback.core.FileAppender"> | ||
<file>${user.home}/clightning4j/lite-bitcoin-rpc.log</file> | ||
<append>true</append> | ||
<!-- set immediateFlush to false for much higher logging throughput --> | ||
<immediateFlush>true</immediateFlush> | ||
<!-- encoders are assigned the type | ||
ch.qos.logback.classic.encoder.PatternLayoutEncoder by default --> | ||
<encoder> | ||
<pattern>%-4relative [%thread] %-5level %logger{35} - %msg%n</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | ||
<!-- encoders are assigned the type | ||
ch.qos.logback.classic.encoder.PatternLayoutEncoder by default --> | ||
<encoder> | ||
<pattern>%-4relative [%thread] %-5level %logger{35} - %msg %n</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<root level="INFO"> | ||
<appender-ref ref="FILE" /> | ||
<appender-ref ref="STDOUT" /> | ||
</root> | ||
|
||
<logger name="io.github.clightning4j.litebtc" level="INFO"> | ||
<appender-ref ref="FILE" /> | ||
<appender-ref ref="STDOUT" /> | ||
</logger> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.