Building & Testing Prysm

This page outlines a guide to building and testing the Prysm project for local development.

Build the Prysm Repo

We use the Bazel build system created by Google to build the Prysm project in development.

First, clone our repository:

git clone https://github.com/prysmaticlabs/prysm

Download the Bazel build tool by Google here and ensure it works by typing:

bazel version

Bazel manages all of the dependencies for you (including go and necessary compilers) so you are all set to build prysm.

Building

Then, build both parts of our system: a beacon chain node implementation, and a validator client:

`` bazel build //beacon-chain:beacon-chain bazel build //validator:validator

Then, build both parts of our system: a beacon chain node implementation, and a validator client:

bazel build //beacon-chain:beacon-chain
bazel build //validator:validator

Testing

To run the entire test suite of our system, do:

bazel test //...

To run our linter, make sure you have gometalinter installed and then run:

gometalinter ./...
nyancat

License

GNU General Public License v3.0