Skip to content


Subversion checkout URL

You can clone with
Download ZIP
An extensible build system for Erlang/OTP applications
Erlang Shell
Tag: 0.3.1

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.

~~ tetrapak

tetrapak is an extensible build system for Erlang/OTP applications.

Config Options

build.erlc_options :: [atom() | {atom(), term()}]

Options passed to the erlang compiler. Please note that there is no support for rebar-like platform defines at the moment.

build.version :: string()

This option describes what goes into the vsn field of the application resource file. A format-string like syntax is used to pull information from the VCS (like git). The directives are:

~~       -- a literal ~
~t       -- the most recent tag
~c       -- the last commit's abbreviated name
~o       -- the last commit's offset from the tag
~b       -- the current branch
~d       -- a timestamp (YYYYMMDDhhmmss)

In addition to the directives above, the version string may also include the following conditional directives:

~O{...}  -- expands to ... if the offset from the latest tag is non-zero
~D{...}  -- expands to ... if the source tree is dirty
~T{...}  -- expands to ... if there is a latest tag

Non-Conditional directives may be used inside of a conditional directive, but nesting them is not supported.

edoc.outdir :: string()

The directory where edoc-generated files are placed. Defaults to "doc".

edoc.private :: boolean()

Whether private documentation shall be generated for this application. Defaults to false.

edoc.hidden :: boolean()

Whether documentation for hidden functions shall be generated. Defaults to false.

edoc.todo :: boolean()

Whether @todo notes should be included in the documentation. Defaults to false.

edoc.sort_functions :: boolean()

Whether functions should be sorted alphabetically. Defaults to false.

edoc.pretty_print :: boolean()

Whether type specs and signatures should be pretty-printed. Defaults to true.

package.outdir :: string()

The directory where built packages are placed. This directory is deleted by the clean:dist task, don't use it for anything you want to keep. Defaults to "dist".

package.maintainer :: string()

This goes into the Maintainer field of generated packages. Defaults to "Joe User <>".

package.exclude :: string()

A regular expression. Any path that matches the expression will be excluded from packages.

package.extra_apps :: [atom()]

List of OTP applications the application depends on in addition to the ones specified in the application resource file. Defaults to [].

package.extra_build_apps :: [atom()]

List of OTP applications the application depends on at build time, in addition to the applications specified in the application resource file and through the package.extra_apps option. Defaults to [].

One case where this might be useful is when your application uses eunit for testing and some of the application's runtime modules include the eunit header. You obviously don't want to depend on eunit on the target system, but the build will fail when eunit is not installed. In that case, adding

extra_build_apps = [eunit]

to the configuration file will make the build work.

package.include_src :: boolean()

Whether the source code of the application shall be included in the package. If true, the tetrapak/ directory is also included. Defaults to false.

package.use_erlrc :: boolean()

If this flag is set, the package will have a dependency on the erlrc application. The package scripts will try to start or upgrade the application at installation time.

package.deb.section :: string()

The debian section in which the package is placed. Defaults to "misc".

package.deb.priority :: string()

The priority of the package. Valid values are "required", "important", "standard", "optional", "extra". Please consult the Debian Policy to learn more about the meaning of those. Defaults to "optional".

package.deb.erlang_base_apps :: [atom()]

This list contains the OTP applications that are included in the erlang-base package. You probably don't want to change this.

package.deb.dependencies :: [string()]

A list of additional debian packages this application depends on at runtime. Don't specify Erlang dependencies here, use package.extra_apps for that.

package.deb.build_dependencies :: [string()]

A list of additional debian packages this application depends on at build time. Don't specify Erlang build dependencies here, use package.extra_build_apps for that.

test.ct.logdir :: string()

The directory where common test's HTML reports are placed. Defaults to "test-log".

test.ct.srcdir :: string()

The directory in which to look for common test suite modules. Defaults to "test".

test.ct.suite :: string()

The common test suite that should be run. The main purpose of this config option is running a specific suite from the command line, as in

$ tetrapak test -o 'test.ct.suite' 'my_SUITE'

Defaults to "all".

xref.ignore_undef :: [{atom(), atom(), integer()}]

The entries of this list specify functions ({Module, Function, Arity}). The 'check:xref' task will fail if there are any calls to undefined functions that are not a member of this list. Defaults to [].

Something went wrong with that request. Please try again.