Setup & Environment
Antidote requires Erlang 21 or greater. Make sure the command erl is executable in your console.
Use the following Makefile targets to build and test antidote:
1
# compile the project:
2
make compile
3
4
# run the unit tests:
5
make test
6
7
# run the system tests:
8
make systests
9
10
# run the release test:
11
make reltest
12
13
# run dialyzer to check types:
14
make dialyzer
15
16
# run linter
17
make lint
18
19
# open a shell:
20
make shell
21
22
# build a release:
23
make rel
Copied!

Working on dependencies

When working on dependencies of Antidote it can be helpful to use them as Checkout Dependencies:
  • Create a folder named _checkouts in your antidote folder (next to the _build folder)
  • Clone or symlink the dependency into that folder. The folder name in _checkouts must be the name of the dependency in rebar.config.
  • When running a rebar3 task on Antidote, it will always use the latest version from the dependencies.
    It will also recompile all other dependencies, which can be avoided by patching rebar3
Last modified 2yr ago
Copy link