NOTE: Currently the child chain server and watcher are bundled within a single umbrella app.
Only Linux and OSX platforms are supported now. These instructions have been tested on a fresh Linode 2048 instance with Ubuntu 16.04.
- Erlang OTP
>=22
(check withelixir --version
) - Elixir
=1.10.*
(check withelixir --version
)
It will install common development tools, geth and postgres.
sh bin/setup
Add the Erlang Solutions repo and install
wget https://packages.erlang-solutions.com/erlang-solutions_2.0_all.deb \
&& sudo apt install ./erlang-solutions_2.0_all.deb \
&& rm ./erlang-solutions_2.0_all.deb
sudo apt-get update
sudo apt-get install esl-erlang=1:22.3.1-1 elixir=1.10.2-1
sudo apt-get install -y erlang-os-mon erlang-parsetools erlang-tools
mix do local.hex --force, local.rebar --force
git clone https://github.com/omgnetwork/elixir-omg
cd elixir-omg
mix deps.get
mix compile
For a quick test (with no integration tests)
make init_test
mix test
To run integration tests (requires not having geth
running in the background):
make init_test
mix test --only integration