Skip to content

Commit 7035762

Browse files
committed
Migrate CouchDB to rebar3
1. Change `src` to `apps` and all symlinks: In order to use the local plugins `rebar3 ic setup_eunit [-f]`, we need to use correct umbrella project structure. See erlang/rebar3#2729 2. Use `configure` script instead of `rebar.config.script` to download dependencies: `make eunit` will get dependency cycle error if using `rebar.config.script` 3. rebar3 has no options such as `skip_deps` or `-r`, so they were removed. <!-- If your changes affects multiple components in different repositories please put links to those issues or pull requests here. --> - [x] Code is written and works correctly - [x] Changes are covered by tests - [ ] Any new configurable parameters are documented in `rel/overlay/etc/default.ini` - [ ] A PR for documentation changes has been made in https://github.com/apache/couchdb-documentation
1 parent d0fd915 commit 7035762

File tree

857 files changed

+912
-734
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

857 files changed

+912
-734
lines changed

.formatter.exs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
[
33
inputs: [
44
"{mix,.formatter}.exs",
5-
"{config,src}/*/test/exunit/*.{ex,exs}"
5+
"{config,apps}/*/test/exunit/*.{ex,exs}"
66
],
77
line_length: 90,
88
rename_deprecated_at: "1.5.0"

.gitignore

+101-86
Original file line numberDiff line numberDiff line change
@@ -39,94 +39,109 @@ rel/tmpdata
3939
share/server/main-coffee.js
4040
share/server/main.js
4141
share/www
42-
src/b64url/
43-
src/bear/
44-
src/certifi/
45-
src/config/
46-
src/couch/priv/couch_js/**/config.h
47-
src/couch/priv/couchjs
48-
src/couch/priv/couchspawnkillable
49-
src/couch/priv/couch_ejson_compare/couch_ejson_compare.d
50-
src/couch/priv/couch_js/**/*.d
51-
src/couch/priv/icu_driver/couch_icu_driver.d
52-
src/mango/src/mango_cursor_text.nocompile
53-
src/docs/
54-
src/ets_lru/
55-
src/excoveralls/
56-
src/fauxton/
57-
src/folsom/
58-
src/hackney/
59-
src/hqueue/
60-
src/hyper/
61-
src/ibrowse/
62-
src/idna/
63-
src/jiffy/
64-
src/khash/
65-
src/meck/
66-
src/metrics/
67-
src/mimerl/
68-
src/mochiweb/
69-
src/oauth/
70-
src/parse_trans/
71-
src/proper/
72-
src/rebar/
73-
src/recon/
74-
src/snappy/
75-
src/ssl_verify_fun/
76-
src/triq/
77-
src/unicode_util_compat/
78-
src/file_system/
79-
src/rebar3/
80-
src/erlfmt/
42+
apps/b64url/
43+
apps/bear/
44+
apps/certifi/
45+
apps/config/
46+
apps/couch/priv/couch_js/**/config.h
47+
apps/couch/priv/couchjs
48+
apps/couch/priv/couchspawnkillable
49+
apps/couch/priv/couch_ejson_compare/couch_ejson_compare.d
50+
apps/couch/priv/couch_js/**/*.d
51+
apps/couch/priv/icu_driver/couch_icu_driver.d
52+
apps/mango/src/mango_cursor_text.nocompile
53+
apps/docs/
54+
apps/ets_lru/
55+
apps/excoveralls/
56+
apps/fauxton/
57+
apps/folsom/
58+
apps/hackney/
59+
apps/hyper/
60+
apps/ibrowse/
61+
apps/idna/
62+
apps/jiffy/
63+
apps/khash/
64+
apps/meck/
65+
apps/metrics/
66+
apps/mimerl/
67+
apps/mochiweb/
68+
apps/oauth/
69+
apps/parse_trans/
70+
apps/proper/
71+
apps/rebar/
72+
apps/recon/
73+
apps/snappy/
74+
apps/ssl_verify_fun/
75+
apps/triq/
76+
apps/unicode_util_compat/
77+
apps/file_system/
78+
apps/rebar3/
79+
apps/erlfmt/
8180
tmp/
8281

83-
src/couch/*.o
84-
src/couch/*.so
85-
src/couch/ebin/
86-
src/couch/priv/couch_js/config.h
87-
src/couch/priv/couchjs
88-
src/couch/priv/couchspawnkillable
89-
src/couch/priv/*.exp
90-
src/couch/priv/*.lib
91-
src/couch/priv/*.dll
92-
src/couch/priv/*.exe
93-
src/couch/vc120.pdb
94-
src/couch_epi/ebin
95-
src/couch_epi/erl_crash.dump
96-
src/couch_event/deps/
97-
src/couch_event/ebin/
98-
src/couch_index/ebin
99-
src/couch_log/ebin
100-
src/couch_peruser/doc
101-
src/couch_peruser/ebin
102-
src/couch_peruser/deps
103-
src/couch_peruser/couchperuser-*
104-
src/couch_peruser/erl_crash.dump
105-
src/couch_peruser/TEST-*.xml
106-
src/couch_peruser/*.beam
107-
src/couch_replicator/*.beam
108-
src/couch_replicator/ebin/replicator.app
109-
src/couch_replicator/.DS_Store
110-
src/couch_stats/*~
111-
src/couch_stats/*.beam
112-
src/couch_stats/deps
113-
src/couch_stats/ebin
114-
src/couch_stats/doc
115-
src/couch_stats/.project
116-
src/couch_tests/*.o
117-
src/couch_tests/*.so
118-
src/couch_tests/ebin/
119-
src/global_changes/ebin/
120-
src/mango/ebin/
121-
src/mango/test/*.pyc
122-
src/mango/nosetests.xml
123-
src/mango/venv/
124-
src/jwtf/.rebar3/
82+
apps/couch/*.o
83+
apps/couch/*.so
84+
apps/couch/ebin/
85+
apps/couch/priv/couch_js/config.h
86+
apps/couch/priv/couchjs
87+
apps/couch/priv/couchspawnkillable
88+
apps/couch/priv/*.exp
89+
apps/couch/priv/*.lib
90+
apps/couch/priv/*.dll
91+
apps/couch/priv/*.exe
92+
apps/couch/vc120.pdb
93+
apps/couch_epi/ebin
94+
apps/couch_epi/erl_crash.dump
95+
apps/couch_event/deps/
96+
apps/couch_event/ebin/
97+
apps/couch_index/ebin
98+
apps/couch_log/ebin
99+
apps/couch_peruser/doc
100+
apps/couch_peruser/ebin
101+
apps/couch_peruser/deps
102+
apps/couch_peruser/couchperuser-*
103+
apps/couch_peruser/erl_crash.dump
104+
apps/couch_peruser/TEST-*.xml
105+
apps/couch_peruser/*.beam
106+
apps/couch_replicator/*.beam
107+
apps/couch_replicator/ebin/replicator.app
108+
apps/couch_replicator/.DS_Store
109+
apps/couch_stats/*~
110+
apps/couch_stats/*.beam
111+
apps/couch_stats/deps
112+
apps/couch_stats/ebin
113+
apps/couch_stats/doc
114+
apps/couch_stats/.project
115+
apps/couch_tests/*.o
116+
apps/couch_tests/*.so
117+
apps/couch_tests/ebin/
118+
apps/global_changes/ebin/
119+
apps/mango/ebin/
120+
apps/mango/test/*.pyc
121+
apps/mango/nosetests.xml
122+
apps/mango/venv/
123+
apps/jwtf/.rebar3/
125124
test/javascript/junit.xml
126125

127126
/_build/
128-
/src/bunt
129-
/src/credo/
130-
/src/httpotion/
131-
/src/jason/
132-
/src/junit_formatter/
127+
/apps/bunt
128+
/apps/credo/
129+
/apps/httpotion/
130+
/apps/jason/
131+
/apps/junit_formatter/
132+
133+
.idea
134+
_build
135+
apps/bbmustache/
136+
apps/cf/
137+
apps/cth_readable/
138+
apps/erlware_commons/
139+
apps/eunit_formatters/
140+
apps/getopt/
141+
apps/providers/
142+
apps/relx/
143+
*.log
144+
rebar3.crashdump
145+
*.lock
146+
*.orig
147+
*.iml

0 commit comments

Comments
 (0)