1
0
mirror of https://github.com/ACINQ/eclair.git synced 2024-11-20 10:39:19 +01:00
Commit Graph

33 Commits

Author SHA1 Message Date
araspitzu
604fd3170f
Add bot support for code coverage (codecov) (#982)
* Add scoverage-maven-plugin dependency

* Update travis build to generate a scoverage report

* Add custom codecov configuration to have nice PR comments

* Add badge for test coverage in readme
2019-05-09 11:42:38 +02:00
araspitzu
5bed099206
Upgrade scala library target on travis: 2.11.12 (#922) 2019-03-28 17:25:22 +01:00
Fabrice Drouin
3b7afd92d4
Use bitcoin-lib 0.11 which embeds libsecp256k1 (#907)
* Use bitcoin-lib 0.11, which embeds libsecp256k1

* Unit tests: generate dummy sig from 32 random bytes

We now use a version of bitcoin-lib which embeds JNI bindings for libsecp256k1,
and it will only sign data that is 32 bytes long (in Bitcoin and LN you always
sign data hashes, not the actual data).

* Use maven 3.6.0 and a different mirror

* RoutingSyncSpec: don't create databases at init time

We called nodeParams which created a new in-memory sqlite database everytime we created "fake" routing info
2019-03-25 14:42:06 +01:00
Fabrice Drouin
34e51c19cc
Use OpenJDK 11 as default JDK (#846)
* Upgrade to JDK11

Eclair can be built and used on Oracle JDK 1.8 or OpenJDK 11.
JavaFX is now embedded in eclair-node-gui and does not need to be installed separately.

* Install: update java download links

OpenJDK 11 is now our recommendation. Tell users to download java from https://jdk.java.net/11

* README: Rewrite installation instructions
2019-02-21 15:11:44 +01:00
Pierre-Marie Padiou
892770b1ed
Update scalatest and remove junit runner (#728)
* updated to scalatest 3.0.5

* use scalatest runner instead of junit

Output is far more readable, and makes console (incl. travis) reports
actually usable.

Turned off test logs as error reporting is enough to figure out what
happens.

The only downside is that we can't use junit's categories to group
tests, like we did for docker related tests. We	could use nested suites,
but that seems to be overkill so I just removed the categories. Users
will only have the possibility to either skip/run all tests.

* update scala-maven-plugin to 3.4.2

NB: This requires maven 3.5.4, which means that we currently need to
manually install maven on travis.

Also updated Docker java version to 8u181 (8u171 for compiling).
2018-10-11 19:01:41 +02:00
Pierre-Marie Padiou
db96c17fd2
Improve integration tests (#710)
* added more logs and improved integration test

* make travis cache maven data
2018-09-18 17:03:49 +02:00
Fabrice Drouin
923d8661f8
Electrum: add wallet and watcher tests (via Docker) (#592)
* add basic electrum wallet test

our wallet connects to a dockerized electrumx server

* electrum: clean up tests, and add watcher docker tests

* electrum wallet: fix balance computation issue

when different keys produced the exact same confirmed + unconfirmed balances, we
would compute an invalid balance because these duplicates would be pruned.

* electrum: rename wallet test

* electrum: add a specific test with identical outputs

* electrum: change scripthash balance logging level to debug

* electrum: make docker tests run on windows/mac

Our electrumx docker container needs to contains to bitcoind that is running on the host.
On linux we use the host network mode, which is not available on windows/osx
On windows/osx we use host.docker.internal, which is not available on linux. This
requires docker 18.03 or higher.
2018-06-27 14:34:02 +02:00
sstone
a74a62b359
Revert "electrum: make docker tests run on windows/mac"
This reverts commit eecddcb340.
2018-06-27 14:26:00 +02:00
sstone
eecddcb340
electrum: make docker tests run on windows/mac
Our electrumx docker container needs to contains to bitcoind that
    is running on the host.
    On linux we use the host network mode, which is not available on windows/osx
    On windows/osx we use host.docker.internal, which is not available on linux. This
    requires docker 18.03 or higher.

    electrum: change scripthash balance logging level to debug

    electrum: add a specific test with identical outputs

    electrum: rename wallet test

    electrum wallet: fix balance computation issue

    when different keys produced the exact same confirmed + unconfirmed balances, we
    would compute an invalid balance because these duplicates would be pruned.

    electrum: clean up tests, and add watcher docker tests

    add basic electrum wallet test

    our wallet connects to a dockerized electrumx server
2018-06-26 23:12:48 +02:00
Pierre-Marie Padiou
c94cb13dd3 Add an experimental SPV mode with bitcoinj (#152) 2017-09-07 17:20:36 +02:00
pm47
6d4e8d1547 re-enabled travis tests 2017-01-17 19:09:06 +01:00
pm47
0e40569a7d disabled travis tests 2016-12-08 19:39:42 +01:00
sstone
2d3b500778 travis: disable interop test 2016-10-17 13:49:11 +02:00
Fabrice Drouin
851ae371ea travis: run interoperability test with lightnind (#19)
* update lightning binaries with versions where most dependencies are statically linked

* run interop tests on travis

* tell travis to use the trusty beta

* interop test: download bitcoind, checkout and compile lightningd

* interop test: fix travis script

* travis interop test: duh...

* interop test: minor cleanup

* reformatting
2016-09-01 16:07:41 +02:00
pm47
0cf389091f changed scala version in travis conf file 2016-08-19 18:23:58 +02:00
Pierre-Marie Padiou
785aa73eac Wip-scalapbc (#14)
* using scalapb binary

* switched to unix file separator

* removed protoc compilation (because we are using precompiled scalapb
2016-07-13 13:04:37 +01:00
sstone
030a7cf2d3 set version to 0.1-SNAPSHOT
Squashed commit of the following:

commit 668e6c5b1df18a4e1a1e6d293bc2667dcce67f21
Author: sstone <samuel.stone@hotmail.co.za>
Date:   Wed Feb 17 16:11:30 2016 +0100

    format pom.xml properly

commit ab8f626145a0e6291da80000b47b4ac42a943b3c
Author: sstone <samuel.stone@hotmail.co.za>
Date:   Wed Feb 17 15:47:22 2016 +0100

    fix pom.xml

commit 068afa08d6b498ec2f46b5b4addea676e199d228
Author: sstone <samuel.stone@hotmail.co.za>
Date:   Wed Feb 17 15:20:07 2016 +0100

    mvn does not need . on the PATH anymore
2016-02-17 16:16:46 +01:00
pm47
5ec551cdc7 added email notifications for travis 2016-02-15 14:44:22 +01:00
pm47
5b30e54200 go back to previous directory after install 2016-02-15 14:34:59 +01:00
pm47
0298fe3e6e fixed typo 2016-02-15 14:26:40 +01:00
pm47
d66fe153f3 fixed travis file 2016-02-15 14:22:57 +01:00
pm47
62fe3a5fea manually installing protobuf 2.6.1 2016-02-15 14:22:10 +01:00
pm47
0e2e5480f0 trying manual installation of protobuf 2016-02-15 14:15:34 +01:00
pm47
b457cd879d using a ppa with protobuf 2.6.1 2016-02-15 14:08:05 +01:00
pm47
788c5aafaf made travis use ubuntu 14.04 2016-02-15 13:55:57 +01:00
pm47
e0106602da testing env keyword 2016-02-15 13:46:16 +01:00
pm47
f9a4a37987 debugging travis file 2016-02-15 13:41:41 +01:00
pm47
6ff7e2395e updated travis file 2016-02-15 12:26:44 +01:00
pm47
269261b793 moved PATH cmd to before_script 2016-02-15 12:10:42 +01:00
pm47
d88a6ebcec echoing path in travis 2016-02-15 12:05:53 +01:00
pm47
3f60ac1e9a updated travis.yml 2016-02-15 11:57:19 +01:00
pm47
50a8ae818e installing protoc in travis yml 2016-02-15 11:42:28 +01:00
pm47
799912992a added travis file 2016-02-15 11:34:37 +01:00