Questions tagged [rebar]

rebar is an Erlang build tool that makes it easy to compile and test Erlang applications, port drivers and releases.

rebar is an Erlang build tool that makes it easy to compile and test Erlang applications, port drivers and releases.

235 questions
1
vote
1 answer

Include common tests in Erlang release

I have a project written in Erlang (and releases generated by rebar) and I want to do integration testing in an environment which is as close as possible to the deployment environment. The project pulls in a few other Erlang applications as…
mikejohnharry
  • 103
  • 1
  • 6
1
vote
1 answer

Rebar eunit skips all app tests if root app is not included

my problem is that I can't run eunit tests for a single app or module without including the root app. My directory laylout looks a bit like this: ├── apps │   ├── app1 │   └── app2 ├── deps │   ├── amqp_client │   ├── meck │   ├── rabbit_common │  …
jaw
  • 932
  • 2
  • 10
  • 24
1
vote
2 answers

How do I use "rebar ct" with a two application node?

I'm using rebar to compile my application. Actually, it's two applications: deps/ apps/A/ apps/B/ apps/B/suites ...where B depends on A. This is correctly configured in apps/B/src/B.app.src. However, when I attempt to run rebar ct, it fails to test…
Roger Lipscombe
  • 89,048
  • 55
  • 235
  • 380
1
vote
2 answers

Rebar fails compiling / bulding from source on R16B02

Running Erlang R16B02 (its installed through source and compiled, erl is on path). Recompile: src/rebar_utils Recompile: src/rebar_xref Uncaught error in rebar_core: {'EXIT', {undef, …
ptomasroos
  • 1,129
  • 1
  • 9
  • 18
1
vote
0 answers

Systools aborted when generating upgrade with rebar

I wanted to use rebar to release and upgrade my app in windows 7 and my erlang version is R15B. Following the wiki of rebar, I had already released a version. However, I came across a problem in doing upgrade. When I after typing this command:…
Meepo
  • 1,291
  • 2
  • 8
  • 6
1
vote
0 answers

How to share libraries in multi applications using rebar?

I have a project structure like this: ROOT/ apps/ common_lib_1/ src/*.erl include/*.hrl common_lib_2/ src/*.erl include/*.hrl common_lib_3/ src/*.erl …
Jacky Lee
  • 1,232
  • 1
  • 9
  • 11
1
vote
1 answer

What is the best way to include a header file (wx.hrl for example) in a release using rebar

I am preparing a release for an application using rebar, and I wonder what is the usual way to include header file from standard library. In my case, it is the wx.hrl file, which is included with its full absolute path in my code. I guess that it is…
Pascal
  • 13,977
  • 2
  • 24
  • 32
1
vote
1 answer

Set the mnesia directory with rebar running eunit test

I am using rebar, and I need to set the mnesia directory for my Erlang eunit tests (which you can usually do by doing erl -mnesia dir DIRECTORY at the cmdline). How do I run eunit tests with a special mnesia dir with rebar? I do not think that the…
Johnny Test
  • 107
  • 1
  • 7
1
vote
1 answer

How can I run an Erlang Service in Windows with long node names?

I'm trying to get an erlang app to run as a Windows service with long node names, but the -name flag for erlsrv doesn't seem to work. The service seems to run, but doesn't show up in epmd with net_adm:names(). However, when I use the -sname flag…
kjw0188
  • 3,625
  • 16
  • 28
1
vote
3 answers

How do I use Vim with Rebar

Trying to get up and running Vim + Rebar. Separately they work but not together. What I want to achieve is to run eunit without leaving the Vim. I guess this is doable with following plugin https://github.com/mbbx6spp/vim-rebar . Unfortunately is…
ruslander
  • 3,815
  • 4
  • 32
  • 34
1
vote
1 answer

Function "dynamic_compile:from_string" failed when start with rebar

I'm using dynamic_compile to dynamic create logger. It told error when start through rebar, but correct when start normally. Please help to have a look. Here is my little demo project on github. Following is my steps: Step report error: ~/rebar_test…
goofansu
  • 2,277
  • 3
  • 30
  • 48
1
vote
1 answer

How can I load a Rebar plugin for 'pre-compile' from a dependency?

I have a number of applications that need a header file to be generated before compilation. This seemed to be a perfect candidate for a Rebar plugin, so I created a plugin with a pre_compile function, put it in a Git repository, and listed it as a…
legoscia
  • 39,593
  • 22
  • 116
  • 167
1
vote
1 answer

rebar release erlexec error

My program is written in mac os 10.6.8(erlang 15B01) and release with rebar. In my development pc, when calling rel/app_a/bin/app_a console, it runs ok. Exec: /Users/***/Documents/Project/***/rel/app_a/erts-5.9.1/bin/erlexec -boot…
Chen Yu
  • 3,955
  • 1
  • 24
  • 51
1
vote
1 answer

Rebar generated start up script not loading dependencies

I'm very new to Erlang and using Rebar but we are doing a project that needs to connect to a Riak server, for this I'm trying to use the Riak Erlang client (riakc_pb_socket etc). The problem is that the shell that is started from my start up script…
user1280648
1
vote
1 answer

Rebar build fails on Erlang R15B02

Uninstalled previous version of erlang Installed the latest release R15B02 Installed rebar from source rebar compile fails now with the following error: Uncaught error in rebar_core: {'EXIT', {badarg, …
P_A
  • 1,804
  • 1
  • 19
  • 33