Skip to content

Update rebar.config, .travis.yml and bin/lfe - #253

Merged
rvirding merged 1 commit into
lfe:developfrom
yurrriq:rebar3-ct-fix
Jul 20, 2016
Merged

rvirding merged 1 commit into
lfe:developfrom
yurrriq:rebar3-ct-fix

Conversation

@yurrriq

@yurrriq yurrriq commented Jul 16, 2016

Copy link
Copy Markdown
Contributor

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 #251


@rvirding: This version is more robust than #252 and now rebar3 ct works without running make compile, thereby avoiding redundant compilation. bin/lfe is also more robust, as it uses $REBAR_DEPS_DIR when available. If that's not set, it'll behave exactly as before.

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
@rvirding
rvirding merged commit 5fb2207 into lfe:develop Jul 20, 2016
@yurrriq
yurrriq deleted the rebar3-ct-fix branch August 20, 2016 19: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.

rebar3 ct fails on my system (but not on Travis)

2 participants