summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Export following env vars when running hooks:Jean Parpaillon2015-06-151-1/+56
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | REBAR_DEPS_DIR = rebar_dir:deps_dir/1 REBAR_BUILD_DIR = rebar_dir:base_dir/1 REBAR_ROOT_DIR = rebar_dir:root_dir/1 REBAR_CHECKOUTS_DIR = rebar_dir:checkouts_dir/1 REBAR_PLUGINS_DIR = rebar_dir:plugins_dir/1 REBAR_GLOBAL_CONFIG_DIR = rebar_dir:global_config_dir/1 REBAR_GLOBAL_CACHE_DIR = rebar_dir:global_cache_dir/1 REBAR_TEMPLATE_DIR = rebar_dir:template_dir/1 REBAR_APP_DIRS = rebar_dir:lib_dirs/1 REBAR_SRC_DIRS = rebar_dir:src_dirs/1 autoconf compatible variables (see: http://www.gnu.org/software/autoconf/manual/autoconf.html#Erlang-Libraries): ERLANG_ERTS_VER = erlang:system_info(version) ERLANG_ROOT_DIR = code:root_dir/0 ERLANG_LIB_DIR_erl_interface = code:lib_dir(erl_interface) ERLANG_LIB_VER_erl_interface = version part of path returned by code:lib_dir(erl_interface) ERL = ERLANG_ROOT_DIR/bin/erl ERLC = ERLANG_ROOT_DIR/bin/erl Export env var REBAR_BUILD_DIR in hooks, as rebar_dir:base_dir/1
* | Merge pull request #519 from ferd/fix-shell-outputTristan Sloughter2015-06-151-1/+4
|\ \ | |/ |/| OTP apps show proper output
| * OTP apps show proper outputFred Hebert2015-06-151-1/+4
|/ | | | | | | | | | Whenever the old shell got killed and an app got loaded prior, the whole thing would silently drop output as the old 'user' process was replaced while application master processes would keep the old one's pid in their internal state. To work around this limitation, make sure the apps are booted only after the shell is replaced so that only the new `user` pid is used.
* Merge pull request #507 from fishcakez/rebar2_compat_configFred Hebert2015-06-082-44/+68
|\ | | | | Use the same dialyzer rebar.config options as rebar
| * Use the same dialyzer rebar.config options as rebarJames Fish2015-06-062-44/+68
|/ | | | | | | | | | | | | | | | | | | | * All configuration is moved to `{dialyzer, PropList}` * `dialyzer_warnings` renamed `warnings` * `dialyzer_plt_warnings` renamed `get_warnings` * `dialyzer_plt_apps` renamed `plt_extra_apps` * `dialyzer_plt_dir` renamed `plt_location` * `{plt_location, local}` uses profile base directory * `dialyzer_plt` removed * `dialyzer_plt_prefix` sets prefix of PLT name (default "rebar3") * `dialyzer_base_plt_apps` renamed `base_plt_apps` * `dialyzer_base_plt_dir` renamed `base_plt_location` * `{base_plt_location, global}` uses rebar3's global cache directory * `dialyzer_base_plt` removed * `base_plt_prefix` sets prefix of PLT name (default "rebar3") PLT files are always named `<prefix>_<otp_version>_plt` to match rebar. `plt_prefix` and `base_plt_prefix` are not available in rebar, where the prefix is always set to the project's top level application.
* Merge pull request #502 from fishcakez/rebar2_compatFred Hebert2015-06-061-99/+39
|\ | | | | Include same files in PLT as rebar2
| * Include same files in PLT as rebar2James Fish2015-06-021-99/+39
| | | | | | | | | | | | | | | | * Only include direct dependencies + base plt * Error on missing direct dependency * Always use beams in ebin instead of reading .app file (copying rebar2) * Remove fake unknown warnings (will clash with unknown warning in 18.0) * Remove redundant search for .app file (code path includes deps)
* | Merge pull request #500 from tsloughter/artifactsFred Hebert2015-06-026-20/+83
|\ \ | | | | | | add config option artifacts
| * | add artifact testTristan Sloughter2015-06-021-1/+29
| | |
| * | add config option artifactsTristan Sloughter2015-06-025-19/+54
| | |
* | | Merge pull request #501 from tsloughter/escriptize_improvementsFred Hebert2015-06-022-6/+3
|\ \ \ | |_|/ |/| | improve escriptize provider
| * | improve escriptize providerTristan Sloughter2015-06-022-6/+3
| | |
* | | Merge pull request #499 from rebar/handle-custom-logger-breakageTristan Sloughter2015-06-011-6/+12
|\ \ \ | | | | | | | | Handle custom logger shell breakage
| * | | Handle custom logger shell breakageFred Hebert2015-06-011-6/+12
|/ / / | | | | | | | | | | | | | | | | | | When swapping handlers, if a custom shell has been installed, it's possible it'll take over the tty and other options. This may break common operations that work on an otherwise regular shell, so we ignore failures and let things work with the custom shell only.
* | | Bump to alpha-6Fred Hebert2015-05-312-2/+2
| | |
* | | Merge pull request #491 from tsloughter/pre_plugin_providersFred Hebert2015-05-312-7/+7
|\ \ \ | | |/ | |/| set default providers before installing plugins
| * | set default providers before installing pluginsTristan Sloughter2015-05-312-7/+7
|/ /
* | Merge pull request #490 from tsloughter/release_hooksFred Hebert2015-05-312-0/+8
|\ \ | |/ | | run pre and post hooks for release and tar providers
| * run pre and post hooks for release and tar providersTristan Sloughter2015-05-312-0/+8
| |
* | Merge pull request #488 from tsloughter/fix_escriptize_in_depsFred Hebert2015-05-302-5/+9
|\ \ | |/ | | keep all_deps list in state created for building deps
| * keep all_deps list in state created for building depsTristan Sloughter2015-05-302-5/+9
|/
* Merge pull request #487 from ferd/fix-provider-barenessTristan Sloughter2015-05-3028-28/+28
|\ | | | | fix bareness issues
| * fix bareness issuesFred Hebert2015-05-3128-28/+28
| | | | | | | | | | | | - Crashes in providers lib when no providers in a namespace are bare - Making sure bareness matches semantics; i.e. a bare provider is visible, a non-bare provider is hidden.
* | Merge pull request #486 from aboroska/fix-group_leader-dead-pidFred Hebert2015-05-301-2/+4
|\ \ | | | | | | Fix badarg exception when setting group_leader for a dead pid
| * | Fix badarg exception when setting group_leader for a dead pidAndras Boroska2015-05-301-2/+4
|/ / | | | | | | | | | | When setting up a shell some time elapses between listing the pids and setting the group_leader. If the process exited during that time then erlang:group_leader/2 will crash with badarg.
* | Merge pull request #483 from talentdeficit/root_config_src_dirsFred Hebert2015-05-302-6/+93
|\ \ | | | | | | allow `src_dirs` and `extra_src_dirs` at the root of the rebar config
| * | allow `src_dirs` and `extra_src_dirs` at the root of the rebar configalisdair sullivan2015-05-302-6/+93
|/ /
* | Merge pull request #473 from ferd/improve-shellTristan Sloughter2015-05-304-36/+238
|\ \ | |/ | | improve the rebar3 shell
| * Optionally allow node names to the rebar3 shell.Fred Hebert2015-05-301-12/+30
| | | | | | | | | | Helps with integration efforts, but unfortunately can't support the '-sname' and '-name' options, only '--sname' and '--name'.
| * Fix config loading in shellFred Hebert2015-05-301-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Config files from the command line would expect the wrong format: {app1, [...]}. {app2, [...]}. Instead of the correct sys.config format: [{app1, [...]}, {app2, [...]}] Not supported yet: the recursive file references documented in http://www.erlang.org/doc/man/config.html
| * Add support to boot apps from releases in shellFred Hebert2015-05-291-1/+14
| | | | | | | | Precedence still goes to shell_apps.
| * Get prebooted apps to acknowledge sys.configFred Hebert2015-05-291-3/+16
| | | | | | | | | | Change the order from load-config -> start-apps to load-apps -> load-config -> start-apps
| * Display experimental warningFred Hebert2015-05-291-4/+12
| | | | | | | | The feature may still be modified in the future.
| * Rebar agent reloads the config file on every runFred Hebert2015-05-282-35/+68
| | | | | | | | | | This allows proper checking of new configurations, deps, or plugins, and makes sure they are detected during an active shell session.
| * 'do' returns its final state.Fred Hebert2015-05-281-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | While 'do' skips state updates between subcommands so that: rebar3 do a, b == (rebar3 a && rebar3 b) The final state of 'b' does not need to be discarded and might in fact be useful to get when dealing with Rebar3 as an API. This can be done without breaking the equality relation already established.
| * Add a shell agentFred Hebert2015-05-263-10/+92
| | | | | | | | | | The shell agent allows to run rebar3 commands and autoload compiled modules when that is done.
| * Adding app auto-boot to rebar shellFred Hebert2015-05-231-35/+63
| | | | | | | | | | | | | | | | | | | | - moved path addition, config loading and app boot to before the shell is available - apps successfully booting are in an INFO message, failed to boot into an ERROR message - A warning is printed when apps are booted informing to please use releases for actual deployment, and is omitted otherwise. - Some minor refactorings otherwise.
* | Merge pull request #474 from tsloughter/fix_plugin_installTristan Sloughter2015-05-2910-39/+166
|\ \ | | | | | | fixing plugin install and paths
| * | add comment explaining installing each plugin individuallyTristan Sloughter2015-05-291-0/+1
| | |
| * | store plugin providers in app_info's state for depsTristan Sloughter2015-05-286-27/+43
| | |
| * | add test for plugin with transitive depsTristan Sloughter2015-05-272-4/+56
| | |
| * | fix for plugin installation and code pathsTristan Sloughter2015-05-276-19/+77
| | |
* | | Merge pull request #481 from ferd/fix-atom-pkg-upgradeTristan Sloughter2015-05-283-9/+49
|\ \ \ | | | | | | | | Fix upgrade of atom-only packages
| * | | Fix upgrade of atom-only packagesFred Hebert2015-05-283-9/+49
| | |/ | |/| | | | | | | they would always be left unfound otherwise.
* | | Merge pull request #477 from tsloughter/relx_profilesFred Hebert2015-05-261-1/+1
|\ \ \ | | |/ | |/| reverse relx config so profile settings are used properly
| * | reverse relx config so profile settings are used properlyTristan Sloughter2015-05-261-1/+1
|/ /
* | Merge pull request #461 from erocci/masterTristan Sloughter2015-05-232-7/+69
|\ \ | | | | | | Add excluded_apps rebar.config keyword
| * | Add rebar.config 'excluded_apps' key.Jean Parpaillon2015-05-232-7/+69
|/ / | | | | | | | | | | Listed applications are simply ignored. Allows for configuration time sub-application building.
* | Merge pull request #472 from tsloughter/refactor_hooksTristan Sloughter2015-05-224-25/+12
|\ \ | |/ |/| move handling of undefined app state to function
| * move handling of undefined app state to functionTristan Sloughter2015-05-224-25/+12
|/