summaryrefslogtreecommitdiff
path: root/test/rebar_profiles_SUITE.erl
Commit message (Collapse)AuthorAgeFilesLines
* OTP-21 readiness, Full Unicode supportFred Hebert2017-11-161-1/+1
| | | | | | | | | | | | This replaces all deprecated function usage by alternative ones based on a version switch enacted at compile time, preventing all warnings. This will likely introduce some possible runtime errors in using a Rebar3 compiled on OTP-20 or OTP-21 back in versions 19 and earlier, but we can't really work around that. A bunch of dependencies have been updated to support OTP-21 without warnings as well.
* Fix recursive profile merging in umbrella appsFred Hebert2017-08-111-1/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a config file exists at the root of a project, defines a given configuration value for a given profile, and that a sub-application (umbrella app) also has the same profile defined with the same key (but different values), the configuration values of the sub-application's profile would get silently dropped. The problem being that when the function to merge profiles is applied recursively, it is applied to each profile (so it will merge on the keys test, prod, etc.) rather than to each of the values of each profile. This patch reworks the profile merging so that the current behaviour is respected overall (a profile cannot be cancelled by a subdep's non-existant profile since its value should have been ignored), but ensures that sub-deps' profiles are otherwise applied recursively with the proper rules: - dependencies favor prior values - plugins favor new values - erl_first_files combine the lists - relx uses the tuple merge algorithm - erl_opts has its own custom merge as well - otherwise the new value takes precedence A test has also been added. There is a risk of breakage in some applications that may have relied on the buggy behaviour to work, though at this time we are aware of none of them.
* Add tests for the first_files profile mergesFred Hebert2017-05-111-2/+23
|
* Added regression tests for PR 1398Ted Burghart2016-12-051-2/+102
|
* Revert "define the 'EUNIT' macro in the test profile"alisdair sullivan2016-03-031-10/+4
| | | | This reverts commit 4c32c52b557c66ac6e6764efb1ed9135c00a3c20.
* define the 'EUNIT' macro in the test profilealisdair sullivan2016-03-031-4/+10
|
* inject `eunit_compile_opts`, `eunit_first_files` and `TEST` macroalisdair sullivan2015-09-291-2/+2
| | | | prior to running compile and compile prehooks
* remove state record from app_info recordTristan Sloughter2015-08-311-2/+1
|
* Add tests for mixed deps installsFred Hebert2015-08-161-5/+10
| | | | | Requires a rework of other test suites using the same dep-handling mechanism.
* Adding directory path test for deduplicationFred Hebert2015-05-041-0/+18
|
* Merge branch 'master' into app-discover-profile-duplicationViacheslav V. Kovalev2015-05-011-3/+42
|\ | | | | | | | | Conflicts: test/rebar_profiles_SUITE.erl
| * R15 support, replace unsetenv with putenv empty stringTristan Sloughter2015-04-221-1/+1
| |
| * fix tracking of all profiles dep pathsTristan Sloughter2015-04-221-2/+37
| |
| * real bootstrappingTristan Sloughter2015-04-221-1/+1
| |
| * track and cleanup code paths for different contextsTristan Sloughter2015-04-211-3/+8
| |
* | Implement opts umerge deduplicationViacheslav Kovalev2015-04-221-6/+48
| |
* | Implement some test on profiles deduplicationViacheslav V. Kovalev2015-04-221-0/+91
|/
* add a more direct way to generate an `eunitized` test app toalisdair sullivan2015-03-241-4/+4
| | | | test utils and add better eunit tests
* Preserve profile order on mergeable tuple/optsFred Hebert2015-03-221-2/+9
| | | | | | | | | | | Rather than using the stdlib lists:umerge, we expand it to allow fuzzy matching on tuples vs. vals (`key` vs. `{key,val}`) with an overriden sort order so that two tuples or values comparing equal get a priority on the newest profile. This is a partial fix for #287 -- this current patch should be followed by a relx update to take options in order (as if they were a proplist) to complete it.
* store base opts after initialization of providersTristan Sloughter2015-03-061-4/+16
|
* add test for test profile applied to project appsalisdair sullivan2015-03-051-2/+24
|
* two failing tests and one passing test to attempt to isolate wherealisdair sullivan2015-03-051-2/+48
| | | | | | profiles are failing to be applied relevant to #224 and #233
* fix for profiles_remain_applied_with_config_presentTristan Sloughter2015-03-041-3/+25
|
* `add_to_profile/3` function added to `rebar_state`alisdair sullivan2015-03-021-2/+25
|
* don't replace non-string list with empty list in profile mergeTristan Sloughter2015-03-021-2/+10
|
* profiles: combine lists of values for conflicting config optionsTristan Sloughter2015-02-241-2/+20
|
* basic profile deps testsTristan Sloughter2015-02-221-0/+82