| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|
|
|
|
| |
The raw log file is split into lines to check for errors.
However the logged message should contain newlines for easier reading.
|
| |
|
|\
| |
| | |
Remove profiler note
|
| |
| |
| |
| |
| | |
If and when getopt gains the required feature, this can be revisited,
but let's remove the message, since it's been a long time.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Replacing crypto:rand_uniform(0, 10000) with rebar_rnd:uniform(10000) (which is
either rand:uniform or random:uniform dependent on what otp version it runs on)
fails in rebar_ct. One might assume it's because the old call requests a number
>= 0 while the new call has no way to ask for anything but >= 1. However, the
way the value is used doesn't rely on it to include 0, so the bug lies
elsewhere. Actually, generating a random number to choose a pseudo-unique
ct_run node name isn't a reliable method to avoid naming clashes.
I cannot reproduce it locally and also cannot see the actual error in the CI
logs. Mirroring what rebar_eunit does and using a bigger rng range seems to be
enough to avoid node name clashes on Travis-CI.
|
|/
|
|
|
|
|
|
|
|
| |
By doing this, we fix two issues at once. First, there's no need to have
crypto available anymore. While not having crypto in your Erlang
installation is a questionable packaging decision, it tends to happen in
the wild with users installing Erlang and missing crypto. Sometimes this
is not due to a distro's package but users building Erlang without the
needed OpenSSL dependencies. Second, this resolves the Erlang 20 rng
deprecation warnings.
|
|\
| |
| | |
Fix #634
|
| | |
|
|/
|
|
|
|
| |
Any application using a .app.src.script file will now be properly
skipped if requested. This check was missing the newer third case for
the file extension.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| | |
port_compiler: auto-select C++ specific link template
|
| |
| |
| |
| |
| |
| |
| |
| | |
Even though "$CC foo.o -lstdc++ -o foo.so" works if foo.o was built with
$CXX, depending on the platform and toolchain and C++ standard used, it
may not. In order to ensure this works reliably, we introduce
EXE_LINK_CXX_TEMPLATE and DRV_LINK_CXX_TEMPLATE and auto-select if the
port spec being built consists of at least one C++ source.
|
|/
|
|
| |
Extract clang db entry generation into a separate function.
|
|
|
|
|
|
| |
In order for newer clang tools to work, they require the presence of a
compilation database in the form of compile_commands.json. Therefore,
we adapt port_compiler to write such a file.
|
|
|
|
|
|
|
|
| |
In order for rebar to work with previous and current OTP releases, we
generate the rebar_rnd module on startup. rebar_rnd is generated
dynamically to make sure that we use the right random module (either
rand if available or else random). It only wraps the common subset of
the API, but that's sufficient for rebar's use.
|
| |
|
| |
|
|\
| |
| | |
Revert 'Treat port env vars as expandable only if they self reference'
|
| |
| |
| |
| | |
Regression introduced in b816c69e343c8fd757c59fe8703eeda597f4da0a.
|
|/ |
|
| |
|
|
|
|
|
|
|
|
| |
Example: {git, {appname, "git://something/something", {branch, master}}}
^
|
|---- Notice the lack of a version Regex
|
|\
| |
| | |
Look for ct .spec files in the ct_dir that was specified
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Allow to change existing behaviour which is to find all .spec
files recursively in the current working directory through a new
rebar.config option: {ct_search_specs_from_test_dir, true}
This is confusing since the user explicitly stated the
location for his spec files and negates the possibility
to have different spec'ed suites for different environment.
Also fix the node name generation on the ct test run, append
a random number that will reduce chances of name collisions
on epmd.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When REBAR_VSN_CACHE_FILE is set, then vsn cache is loaded from
this file on rebar start and updated when new data.
Under specific circumstances (i.e. in build environments),
full git tree may not be available, but only its snapshot.
We need a way to use preheat vsn cache instead of invocing
git command.
Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When REBAR_DEPS_PREFER_LIBS is set, dependencies with defined sources
are allowed to be searched for in system lib directory.
Under specific circumstances (i.e. in build environments without networking)
it is impossible to fetch deps locally. So, user needs a way to ask rebar to
search in system lib directory as well.
Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com>
|
|/
|
|
|
|
|
| |
The test program used to determine the word size of a crosscompiler is
crafted to return an error, so this changes the logic to expect an
error exit. If the crosscompiler actually compiles the test program
successfully, that would be remarkable and worthy of investigation.
|
|\
| |
| | |
Treat port env vars as expandable only if they self reference
|
| |
| |
| |
| |
| | |
Provide additional port test case.
Also, update newest OS X versions build flags.
|
|/
|
|
|
|
|
| |
This fixes the following crash:
> =ERROR REPORT==== 20-Jun-2014::16:35:38 ===
> Error in process <0.40.0> with exit value: {function_clause,[{eunit_surefire,escape_suitename,[undefined,[]],[{file,"eunit_surefire.erl"},{line,416}]},{eunit_surefire,write_report,2,[{file,"eunit_surefire.erl"},{line,258}]},{lists,foreach,2,[{file,"lists.erl"},{line,1336}]},{...
|
|
|
|
|
|
|
|
| |
Add support for patch numbers, also expose
version_tuple/1 for easier internal access.
Normalize version_tuple/1 return value, now
always {Major, Minor, Patch}.
Update regression tests accordingly.
|
|
|
|
| |
also add myself to THANKS
|
|
|
|
| |
Add myself to THANKS
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use retest feature/rebar-windows-ci branch that adds Windows
tests support, test setup callback and additional touch command.
For all tests copy rebar and rebar.cmd using retest setup callback.
Port OS specific commands used in tests to Erlang
(eg. touch, rm, cp, stat..).
rebar_ct: do away with grep command line invocation (which doesn't
exist in Windows) and use instead plain Erlang parsing.
Increase timeout for rgen1 test to 4 minutes, Windows Appveyor
can take longer than the previous 2 minutes.
|
|\
| |
| | |
Provide additional debug logging on relup generation
|
| | |
|
|\ \
| |/
|/| |
xref: fix dialyzer warning introduced in 69802f63120
|
| | |
|
|\ \
| | |
| | | |
Fix windows eunit tests
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
File tests: windows file operations should abort on error
the same as unix operations invoked through sh. Also
windows does not support the '?' character in filenames.
Eunit tests: the 'All' prefix is missing on the 'x tests passed'
message. Eunit only prints the 'All' prefix if there are more
than 2 passed tests, dropping the prefix on the match works
for all cases.
|
|/ |
|
| |
|
| |
|