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

Drop phoenix dependency #61

Merged
merged 7 commits into from
Jan 16, 2017
Merged

Drop phoenix dependency #61

merged 7 commits into from
Jan 16, 2017

Conversation

jeffkreeftmeijer
Copy link
Member

@jeffkreeftmeijer jeffkreeftmeijer commented Jan 10, 2017

  • Make phoenix dependency optional
  • Add Appsignal.phoenix?/0 to call Code.ensure_loaded(Phoenix)
  • Wrap Phoenix-specific modules in if Appsignal.phoenix?-blocks
  • Wrap Phoenix-specific functions or function variants in if Appsignal.phoenix?-blocks

Closes #24.

Arjan Scherpenisse added 2 commits January 15, 2017 10:49
This way, we also test compilation of the library when the Phoenix
dependency is not available, thus making sure that we guard all
Phoenix-specific code with the `Appsignal.phoenix?` test.

The test directory itself has also been split in a generic and
phoenix-specific directory.

Travis CI runs tests on both the `test` and `test_phoenix` environments.
@arjan arjan merged commit b0010a3 into master Jan 16, 2017
arjan pushed a commit that referenced this pull request Jan 16, 2017
@tombruijn tombruijn deleted the drop-phoenix-dependency branch February 3, 2017 13:09
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.

2 participants