Joan Touzet [Wed, 7 Nov 2018 17:13:12 +0000 (12:13 -0500)]
Update master with mainline rebar (v2)
This PR uses the latest software provided by the upstream Rebar (v2) repo.
The most significant change allows this version of Rebar to work with
compilers which do not support the -m64 flag, as reported in #892
amongst others.
The latest code base also contains @davisp's Properly skip apps with a
.app.src.script file patch which CouchDB has been carrying for a while
now.
Luis Rascão [Thu, 1 Feb 2018 09:34:04 +0000 (09:34 +0000)]
Merge pull request #620 from tuncer/travis-dialyze
Travis dialyze
Tuncer Ayaz [Tue, 30 Jan 2018 23:40:57 +0000 (23:40 +0000)]
travis-ci: allow Dialyzer job to fail
Tuncer Ayaz [Tue, 14 Nov 2017 20:56:48 +0000 (20:56 +0000)]
travis-ci: update otp versions
Tuncer Ayaz [Wed, 27 Sep 2017 18:45:55 +0000 (18:45 +0000)]
travis-ci: enable 20.1
Tuncer Ayaz [Sun, 20 Aug 2017 18:58:29 +0000 (18:58 +0000)]
rebar_xref: ignore opaque type match Dialyzer warning
Tuncer Ayaz [Sun, 20 Aug 2017 18:54:31 +0000 (18:54 +0000)]
rebar_cover: ignore opaque type match Dialyzer warning
Tuncer Ayaz [Sun, 20 Aug 2017 18:48:08 +0000 (18:48 +0000)]
rebar_utils: fix Dialyzer warning
Tuncer Ayaz [Tue, 30 Aug 2016 14:18:04 +0000 (16:18 +0200)]
Run Dialyzer on Travis-CI
Luis Rascão [Mon, 29 Jan 2018 09:47:54 +0000 (09:47 +0000)]
Merge pull request #645 from Juliusan/log_fix
Log out success message with newlines
Julius Andrikonis [Mon, 29 Jan 2018 09:15:02 +0000 (11:15 +0200)]
Log out success message with newlines
The raw log file is split into lines to check for errors.
However the logged message should contain newlines for easier reading.
Luis Rascão [Sun, 27 Aug 2017 14:55:21 +0000 (15:55 +0100)]
Merge pull request #644 from tuncer/travis-otp-20.0.4
travis-ci: otp 20.0.2 -> 20.0.4
Tuncer Ayaz [Sat, 26 Aug 2017 11:48:46 +0000 (11:48 +0000)]
travis-ci: otp 20.0.2 -> 20.0.4
Luis Rascão [Mon, 21 Aug 2017 14:24:40 +0000 (15:24 +0100)]
Merge pull request #643 from tuncer/revert-637-drop-crypto-dep
Revert "Drop crypto app reliance"
Tuncer Ayaz [Sun, 20 Aug 2017 19:14:29 +0000 (19:14 +0000)]
Revert "Drop crypto app reliance"
Luis Rascão [Sat, 19 Aug 2017 22:45:29 +0000 (23:45 +0100)]
Merge pull request #639 from tuncer/retest-https
rebar.config: access retest repo via https
Luis Rascão [Sat, 19 Aug 2017 22:32:46 +0000 (23:32 +0100)]
Merge pull request #640 from tuncer/fix-ctsuite-template
Fix ctsuite template
Luis Rascão [Sat, 19 Aug 2017 22:22:52 +0000 (23:22 +0100)]
Merge pull request #641 from tuncer/fix-inttest-export_all
inttest/*: do not export_all
Luis Rascão [Sat, 19 Aug 2017 22:22:25 +0000 (23:22 +0100)]
Merge pull request #642 from tuncer/profile-log
Remove profiler note
Luis Rascão [Sat, 19 Aug 2017 22:21:07 +0000 (23:21 +0100)]
Merge pull request #637 from tuncer/drop-crypto-dep
Drop crypto app reliance
Tuncer Ayaz [Sat, 19 Aug 2017 21:08:26 +0000 (21:08 +0000)]
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.
Tuncer Ayaz [Sat, 19 Aug 2017 16:47:53 +0000 (16:47 +0000)]
inttest/*: do not export_all
Tuncer Ayaz [Sat, 19 Aug 2017 16:34:23 +0000 (16:34 +0000)]
Fix ctsuite template
- Fix and test the Erlang code.
- Do not export_all.
Tuncer Ayaz [Fri, 18 Aug 2017 21:02:55 +0000 (21:02 +0000)]
Improve pseudo-unique ct_run node name
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.
Tuncer Ayaz [Fri, 18 Aug 2017 19:01:54 +0000 (19:01 +0000)]
Drop crypto app reliance
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.
Luis Rascão [Fri, 18 Aug 2017 21:30:40 +0000 (22:30 +0100)]
Merge pull request #638 from tuncer/fix-otp-20-export_all
Fix Erlang 20 export_all warnings
Luis Rascão [Fri, 18 Aug 2017 21:29:42 +0000 (22:29 +0100)]
Merge pull request #636 from tuncer/fix-634
Fix #634
Luis Rascão [Fri, 18 Aug 2017 21:29:03 +0000 (22:29 +0100)]
Merge pull request #635 from tuncer/travis-otp-20
travis-ci: test with Erlang 20.0.2
Luis Rascão [Fri, 18 Aug 2017 21:28:17 +0000 (22:28 +0100)]
Merge pull request #633 from davisp/properly-skip-apps-with-app-src-script
Properly skip apps with a .app.src.script file
Tuncer Ayaz [Fri, 18 Aug 2017 20:22:02 +0000 (20:22 +0000)]
rebar.config: access retest repo via https
Tuncer Ayaz [Fri, 18 Aug 2017 19:10:49 +0000 (19:10 +0000)]
Fix Erlang 20 export_all warnings
Fix other warnings and whitespace errors as well.
Tuncer Ayaz [Fri, 18 Aug 2017 18:56:38 +0000 (18:56 +0000)]
Fix #634
Tuncer Ayaz [Fri, 18 Aug 2017 18:52:24 +0000 (18:52 +0000)]
travis-ci: test with Erlang 20.0.2
Paul J. Davis [Mon, 15 May 2017 20:53:37 +0000 (15:53 -0500)]
Properly skip apps with a .app.src.script file
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.
Luis Rascão [Tue, 21 Feb 2017 22:01:01 +0000 (22:01 +0000)]
Merge pull request #632 from phiggins/tiny-documentation-fix
Fix typo in eunit help.
Pete Higgins [Tue, 21 Feb 2017 19:31:24 +0000 (11:31 -0800)]
Fix typo in eunit help.
Luis Rascão [Thu, 22 Sep 2016 11:01:52 +0000 (12:01 +0100)]
Merge pull request #625 from lrascao/feature/travis_otp_19.1
Continuous integration on OTP 19.1
Luis Rascão [Thu, 22 Sep 2016 10:48:09 +0000 (11:48 +0100)]
Continuous integration on OTP 19.1
Luis Rascão [Fri, 16 Sep 2016 21:53:00 +0000 (22:53 +0100)]
Merge pull request #624 from tuncer/superfluous-space
Remove superfluous space in unabbrev error msg
Tuncer Ayaz [Fri, 16 Sep 2016 20:13:10 +0000 (22:13 +0200)]
Remove superfluous space in unabbrev error msg
Luis Rascão [Wed, 31 Aug 2016 14:47:31 +0000 (15:47 +0100)]
Merge pull request #623 from lrascao/release/2.6.4
Prepare release 2.6.4
Luis Rascão [Wed, 31 Aug 2016 14:31:36 +0000 (15:31 +0100)]
Prepare release 2.6.4
Luis Rascão [Wed, 31 Aug 2016 14:24:16 +0000 (15:24 +0100)]
Merge pull request #619 from tuncer/fix-cdb
Fix cdb processing when a file is skipped
Tuncer Ayaz [Tue, 30 Aug 2016 13:31:27 +0000 (15:31 +0200)]
port_compiler: fix handling of multiple specs
Tuncer Ayaz [Sun, 28 Aug 2016 17:34:54 +0000 (19:34 +0200)]
rebar_utils: restore blank line
Tuncer Ayaz [Sun, 28 Aug 2016 16:09:44 +0000 (18:09 +0200)]
Fix cdb processing when a file is skipped
Luis Rascão [Sat, 27 Aug 2016 00:56:07 +0000 (01:56 +0100)]
Merge pull request #618 from lrascao/release/2.6.3
Prepare release 2.6.3
Luis Rascão [Fri, 26 Aug 2016 23:44:44 +0000 (00:44 +0100)]
Prepare release 2.6.3
Luis Rascão [Fri, 26 Aug 2016 22:52:36 +0000 (23:52 +0100)]
Merge pull request #617 from tuncer/linkcpp
port_compiler: auto-select C++ specific link template
Luis Rascão [Fri, 26 Aug 2016 22:50:45 +0000 (23:50 +0100)]
Merge pull request #616 from tuncer/clang-compilation-db
port_compiler: clean up compile_each()
Tuncer Ayaz [Fri, 26 Aug 2016 04:12:05 +0000 (06:12 +0200)]
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.
Tuncer Ayaz [Sat, 20 Aug 2016 21:15:55 +0000 (23:15 +0200)]
port_compiler: clean up compile_each()
Extract clang db entry generation into a separate function.
Luis Rascão [Fri, 19 Aug 2016 22:56:31 +0000 (23:56 +0100)]
Merge pull request #615 from tuncer/clang-compilation-db
port_compiler: generate clang compilation db
Tuncer Ayaz [Thu, 18 Aug 2016 21:52:34 +0000 (23:52 +0200)]
port_compiler: generate clang compilation db
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.
Luis Rascão [Tue, 16 Aug 2016 12:33:00 +0000 (13:33 +0100)]
Merge pull request #614 from firephreek/bug/bootstrap-file-check
Add an additional check for the existence of a 'rebar.beam' file
Stryder [Mon, 15 Aug 2016 22:48:12 +0000 (15:48 -0700)]
Add an additional check for the existence of a 'rebar.beam' file during bootstrap run. Bootstrap fails on first run without any .beam files in the ebin folder.
Luis Rascão [Sun, 7 Aug 2016 23:40:11 +0000 (00:40 +0100)]
Merge pull request #612 from tuncer/rand19
Introduce and use compat random number module
Tuncer Ayaz [Mon, 25 Jul 2016 12:46:09 +0000 (14:46 +0200)]
Introduce and use compat random number module
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.
Luis Rascão [Sun, 17 Jul 2016 22:33:23 +0000 (23:33 +0100)]
Merge pull request #611 from tuncer/port_compiler-wspace-fix
port_compiler: consistently format default_env/0
Tuncer Ayaz [Sun, 17 Jul 2016 20:48:26 +0000 (22:48 +0200)]
port_compiler: consistently format default_env/0
Luis Rascão [Tue, 12 Jul 2016 12:56:42 +0000 (13:56 +0100)]
Merge pull request #610 from tuncer/lift-qc-experimental
qc: lift experimental notice
Tuncer Ayaz [Tue, 12 Jul 2016 12:32:41 +0000 (14:32 +0200)]
qc: lift experimental notice
Fred Hebert [Tue, 28 Jun 2016 12:28:05 +0000 (08:28 -0400)]
Merge pull request #609 from lrascao/release/2.6.2
Prepare release 2.6.2
Luis Rascão [Tue, 28 Jun 2016 10:04:50 +0000 (11:04 +0100)]
Prepare release 2.6.2
Luis Rascão [Tue, 7 Jun 2016 23:16:00 +0000 (00:16 +0100)]
Merge pull request #606 from lrascao/fix/revert_590
Revert 'Treat port env vars as expandable only if they self reference'
Luis Rascão [Tue, 7 Jun 2016 23:15:38 +0000 (00:15 +0100)]
Merge pull request #605 from lrascao/fix/port_driver_mac_build
Add necessary OSX flags for port driver linking
Luis Rascão [Sun, 5 Jun 2016 17:08:21 +0000 (18:08 +0100)]
Add necessary missing OSX flags for port driver linking
Luis Rascão [Tue, 7 Jun 2016 22:33:38 +0000 (23:33 +0100)]
Revert 'Treat port env vars as expandable only if they self reference'
Regression introduced in
b816c69e343c8fd757c59fe8703eeda597f4da0a.
Fred Hebert [Wed, 13 Apr 2016 23:40:47 +0000 (19:40 -0400)]
Merge pull request #603 from tsloughter/master
add deprecated message
Tristan Sloughter [Wed, 13 Apr 2016 23:26:12 +0000 (18:26 -0500)]
add deprecated message
Luis Rascão [Sat, 9 Apr 2016 23:12:32 +0000 (00:12 +0100)]
Merge pull request #602 from choptastic/rebar3-deps
Support full-source rebar3-style deps (deps without Version Regexes)
Jesse Gumm [Sun, 20 Mar 2016 15:08:05 +0000 (10:08 -0500)]
Add raw to VsnRegex-Free dep
Jesse Gumm [Sun, 20 Mar 2016 14:18:06 +0000 (09:18 -0500)]
Support rebar3-style deps
Example: {git, {appname, "git://something/something", {branch, master}}}
^
|
|---- Notice the lack of a version Regex
Luis Rascão [Fri, 18 Mar 2016 18:55:32 +0000 (18:55 +0000)]
Merge pull request #588 from lrascao/fix/look_for_ct_spec_files_only_in_test_dir
Look for ct .spec files in the ct_dir that was specified
Luis Rascão [Fri, 18 Mar 2016 15:06:09 +0000 (15:06 +0000)]
Merge pull request #594 from matwey/cache_load_save
Introduce REBAR_VSN_CACHE_FILE env variable to load/save vsn cache
Matwey V. Kornilov [Wed, 2 Mar 2016 13:30:30 +0000 (16:30 +0300)]
Introduce REBAR_VSN_CACHE_FILE env variable to load/save vsn cache
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>
Luis Rascão [Thu, 17 Mar 2016 12:10:23 +0000 (12:10 +0000)]
Merge pull request #589 from matwey/rebar_deps_force_lib
Introduce REBAR_DEPS_PREFER_LIBS env variable to alter search behaviour
Matwey V. Kornilov [Thu, 18 Feb 2016 08:40:36 +0000 (11:40 +0300)]
Introduce REBAR_DEPS_PREFER_LIBS env variable to alter search behaviour
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>
Luis Rascão [Fri, 12 Feb 2016 13:15:30 +0000 (13:15 +0000)]
Optionally 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.
Luis Rascão [Mon, 14 Mar 2016 10:06:54 +0000 (10:06 +0000)]
Merge pull request #599 from lrascao/feature/regression_test_for_595
Fix bug when running gcc in cross_sizeof
Frank Hunleth [Sun, 6 Mar 2016 16:04:21 +0000 (11:04 -0500)]
Fix bug when running gcc in cross_sizeof
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.
Luis Rascão [Tue, 23 Feb 2016 15:22:26 +0000 (15:22 +0000)]
Merge pull request #590 from lrascao/feature/allow_port_env_flags_redefinition
Treat port env vars as expandable only if they self reference
Luis Rascão [Tue, 23 Feb 2016 15:11:17 +0000 (15:11 +0000)]
Merge pull request #591 from lrascao/fix/eunit-tests-surefire-crash-and-test
Fix/eunit tests surefire crash
Luis Rascão [Fri, 19 Feb 2016 18:49:52 +0000 (18:49 +0000)]
Provide additional test coverage for surefire enabled eunit testing
Tomas Janousek [Fri, 20 Jun 2014 14:58:49 +0000 (16:58 +0200)]
Fix eunit_surefire crash with rebar eunit tests=...
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}]},{...
Luis Rascão [Fri, 19 Feb 2016 18:20:09 +0000 (18:20 +0000)]
Merge pull request #580 from lrascao/feature/check_common_test_result
Additional Common Test regression tests
Luis Rascão [Tue, 19 Jan 2016 10:50:39 +0000 (10:50 +0000)]
Additional Common Test regression tests
One test that checks for a failed make, another
that detects a failed test run when only one of several
suites fails. The ct test fails is only applicable to OTP
versions older than R16 (inclusive), this is related to the way
older versions handle the test .spec files.
Luis Rascão [Fri, 19 Feb 2016 16:52:46 +0000 (16:52 +0000)]
Treat port env vars as expandable only if they self reference
Provide additional port test case.
Also, update newest OS X versions build flags.
Luis Rascão [Mon, 15 Feb 2016 13:37:23 +0000 (13:37 +0000)]
Merge pull request #587 from lrascao/fix/require_vsn
rebar_require_vsn: Update regexp to account for newer OTP versions
Luis Rascão [Sun, 14 Feb 2016 23:40:35 +0000 (23:40 +0000)]
Update regexp to account for newer OTP versions
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.
Luis Rascão [Sat, 13 Feb 2016 15:58:59 +0000 (15:58 +0000)]
Merge pull request #586 from surik/dia_ensure_ebin
Ensure ebin created for dia compiler
Yury Gargay [Sat, 13 Feb 2016 09:37:16 +0000 (15:37 +0600)]
Add tests for dia compiler
Test will be runed only on OTP >= 15
Yury Gargay [Fri, 12 Feb 2016 12:29:25 +0000 (18:29 +0600)]
Ensure ebin created for dia compiler
also add myself to THANKS
Luis Rascão [Sat, 13 Feb 2016 14:32:39 +0000 (14:32 +0000)]
Merge pull request #532 from lrascao/feature/neotoma_regression_tests
Automatically clean neotoma-generated erl files, regression test
John R. Daily [Mon, 3 Aug 2015 14:40:39 +0000 (10:40 -0400)]
Automatically clean neotoma-generated erl files
Add myself to THANKS
Luis Rascão [Thu, 13 Aug 2015 21:11:52 +0000 (22:11 +0100)]
Add neotoma regression test
Integration regression test that checks for correct generation of .erl files from .peg ones and that they are cleaned up.
Luis Rascão [Sun, 24 Jan 2016 15:47:53 +0000 (15:47 +0000)]
Merge pull request #581 from lrascao/fix/change_retest_dep_url
Update retest dependency url
Luis Rascão [Sun, 24 Jan 2016 15:36:33 +0000 (15:36 +0000)]
Update retest dependency url
Should point to rebar org fork, upstream
no longer being actively maintained by owner.
Fred Hebert [Wed, 20 Jan 2016 17:40:07 +0000 (09:40 -0800)]
Merge pull request #562 from lrascao/fix/windows_retests
Add support for Windows integration testing
Luis Rascão [Fri, 15 Jan 2016 15:27:49 +0000 (15:27 +0000)]
Merge pull request #578 from lrascao/feature/add_latest_otp_travis
Add the latest OTP 18 version to the Travis build