Repository navigation
Update rebar.config, .travis.yml and bin/lfe - #253
Merged
Merged
Conversation
Unless prefixed with `./bin/lfe`, `./bin/lfec` will use the version of
`lfe` installed on the system, which in my case is often incorrect.
Add a `compile` `post_hook` to compile `src/*.lfe` and output the beams
to the correct directory (as per `$REBAR_DEPS_DIR`). Remove the
redundant `make` in the `ct` `pre_hooks` and use `$REBAR_DEPS_DIR`
instead of the hard-coded `_build/test/lib`.
Remove `./bin` from `$PATH` in `.travis.yml` to avoid similar confusion
in the future.
Use `$REBAR_DEPS_DIR` in `bin/lfe` when set, otherwise fall back to
`./_build/default/{deps,lib}` as before.
Close lfe#251
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Unless prefixed with
./bin/lfe,./bin/lfecwill use the version oflfeinstalled on the system, which in my case is often incorrect.Add a
compilepost_hookto compilesrc/*.lfeand output the beamsto the correct directory (as per
$REBAR_DEPS_DIR). Remove theredundant
makein thectpre_hooksand use$REBAR_DEPS_DIRinstead of the hard-coded
_build/test/lib.Remove
./binfrom$PATHin.travis.ymlto avoid similar confusionin the future.
Use
$REBAR_DEPS_DIRinbin/lfewhen set, otherwise fall back to./_build/default/{deps,lib}as before.Close #251
@rvirding: This version is more robust than #252 and now
rebar3 ctworks without runningmake compile, thereby avoiding redundant compilation.bin/lfeis also more robust, as it uses$REBAR_DEPS_DIRwhen available. If that's not set, it'll behave exactly as before.