Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List mnesia as dependency of test application #72

Merged
merged 1 commit into from
Mar 6, 2017
Merged

List mnesia as dependency of test application #72

merged 1 commit into from
Mar 6, 2017

Conversation

lucafavatella
Copy link
Contributor

Please refer to commit message for details.

I understand the sr_test application does not have a structured way for building it as an OTP release e.g. its own rebar.config. I expect that if application sr_test were built as an OTP release without listing mnesia in rebar.config then the OTP release would fail to start for missing mnesia.

An OTP release using mnesia sumo_db adapter must list mnesia as a
dependency - either in one of the applications of the OTP release or
in the rebar.config - because neither
[sumo_rest](https://github.com/inaka/sumo_rest/blob/0.3.3/src/sumo_rest.app.src)
(of course) nor
[sumo_db](https://github.com/inaka/sumo_db/blob/0.7.1/src/sumo_db.app.src)
depend on mnesia.

It makes sense that sumo_db does not depend on mnesia, as its users do
not necessarily use the included mnesia adapter.

As the test application does not have its own rebar.config, list
mnesia as dependency of the application sr_test so that novice sumo_db
user is reminded to list it.
@lucafavatella
Copy link
Contributor Author

If the sr_test application were meant to have a structure approach for building it as an OTP release, its building and startup could be tested as part of CI.

@elbrujohalcon elbrujohalcon merged commit feabf15 into inaka:master Mar 6, 2017
@lucafavatella lucafavatella deleted the mnesia-dep branch March 6, 2017 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants