Coinffeine P2P FIAT-Bitcoin exchange implementation.
To build Coinffeine you will need:
- Java 8 (just Java 7 if you are not interested in
coinffeine-gui
module) - A working SBT 0.13
- Protobuf compiler 2.5.0. You can get it with your favourite package manager
(
protobuf
in brew,protobuf-java
in apt-get and macports) or directly from its project page.
To compile all the modules and run their tests:
sbt compile test
To run the peer from the sources:
sbt gui/run
The application can be natively packaged by the following command. Note that
you should have installed the corresponding native tools such as RPM on Red Had
or the fakeroot
package in Ubuntu/Debian.
sbt gui/packageJavafx
To get coverage metrics just run sbt scoverage:test
and loot at the
directory target/scala-2.x/scoverage-report
of every module.
To generate all module binaries that can be generated on the host platform (you wont generate Win-64 binaries from Mac) just run:
sbt release
And you will find the binaries at target/release/<version>
.
When building on a CI environment (e.g., Jenkins), it is recommended to define the
property -Dconfig.resource=application-ci.conf
. This will make Akka to use an
alternative config file that introduces a dilation in the timeouts used by the test probes.
This is especially useful to avoid false errors in heavily loaded Jenkins servers.