Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
777 commits
Select commit Hold shift + click to select a range
8117092
mod_mam: Respond to form requests
weiss Jan 13, 2016
85f4f90
mod_mam: Support XEP-0313 v0.2 MUC archive queries
weiss Jan 13, 2016
89f63a4
mod_mam: Check whether MUC message is desired
weiss Jan 14, 2016
11afa45
mod_mam: Remove unused variable
weiss Jan 14, 2016
35ec0d5
mod_mam: Reject <index/>-based paging
weiss Jan 14, 2016
58c8fc5
mod_mam: Limit result set page size
weiss Jan 14, 2016
db04cdf
mod_mam: Sort messages returned by Mnesia
weiss Jan 14, 2016
6cb1905
add stats processes command
hamano Jan 14, 2016
b244bce
don't escape ERL_OPTIONS
hamano Jan 14, 2016
ddaa409
XEP-0198: Let MAM take care of pending messages
weiss Jan 15, 2016
fc12379
Update translations files
badlop Jan 15, 2016
09ab010
Update Spanish and Catalan translation
badlop Jan 15, 2016
1d452c9
Describe option type of 'domain_balancing'
Jan 15, 2016
a83c5a8
Do not redefine records
Jan 15, 2016
33b67f5
Include mod_muc.hrl
Jan 15, 2016
c8bc6ce
Fix records in mod_muc.hrl
Jan 15, 2016
ad448ef
update japanese translation
hamano Jan 15, 2016
7ab3b0d
update japanese translation
hamano Jan 15, 2016
c31875c
Merge pull request #911 from hamano/ja
badlop Jan 15, 2016
6ac839d
Merge pull request #906 from hamano/stats_processes
badlop Jan 15, 2016
63777f8
Use maps instead of dicts in HTTP upload modules
weiss Jan 16, 2016
0125870
Merge remote-tracking branch 'processone/pr/907'
weiss Jan 16, 2016
ee1cf93
Make --disable-debug work again
prefiks Jan 18, 2016
9741dba
Update polish localisation
prefiks Jan 18, 2016
bd383fb
mod_mam: Remove unused code
weiss Jan 18, 2016
a150bf8
Make C2S session establishment optional (ECS-11)
alexeyshch Jan 18, 2016
05bc0d4
Update Ukrainian translation (thanks to Oleg Deordiev)
badlop Jan 18, 2016
6b775fb
Update Walon translation (thanks to Pablo Saratxaga)
badlop Jan 18, 2016
3feceb8
Update Czech translation (thanks to Jan Pinkas)
badlop Jan 18, 2016
5e4ed42
mod_mam: Strip existing JID tags from MUC messages
weiss Jan 18, 2016
2ddbd03
Add error handling to send_stanza
Jan 19, 2016
278d8a6
Fix fuzzy tag in correct string
badlop Jan 19, 2016
b626070
mod_mam: Expose MUC occupant JID in more cases
weiss Jan 19, 2016
3d3034c
Update zh.po
fotock Jan 20, 2016
e2c1368
Update zh.po
fotock Jan 20, 2016
46a85d3
Merge pull request #1 from fotock/fotock-patch-1
fotock Jan 20, 2016
3d42be5
Merge pull request #915 from fotock/master
badlop Jan 20, 2016
42f86e7
Fix order of arguments references
badlop Jan 20, 2016
a189655
Add missing ref key
Jan 21, 2016
5a85b0f
rename timestamp function #917
hamano Jan 23, 2016
f933cae
Update Elixir dependency to latest p1_utils and cache_tab
mremond Jan 23, 2016
dae1ec2
Make sure mix does not trigger conflict on p1_utils
mremond Jan 23, 2016
7cc951a
Make sure all version are consistent before big repositories changes
mremond Jan 23, 2016
a3931e6
lager is the default logger, we need to reverse the define flag
mremond Jan 23, 2016
e97195b
Mix requires override
mremond Jan 23, 2016
0920511
lager is the default logger, we need to reverse the define flag
mremond Jan 23, 2016
dae41ec
ejabberd will handle Mnesia start
mremond Jan 23, 2016
a2a692d
Merge pull request #919 from hamano/rename_timestamp_function
prefiks Jan 24, 2016
67b5162
Prepare hex.pm release
mremond Jan 24, 2016
a7e3df4
Merge branch 'master' of github.com:processone/ejabberd
mremond Jan 24, 2016
14c0ff1
Add missing description
mremond Jan 24, 2016
6017578
Updated Portuguese-Brazilian translation (thanks to Otávio Fernandes)
badlop Jan 24, 2016
0b492f4
If lager is false, we will use p1_logger
mremond Jan 25, 2016
6c499f5
Merge branch 'master' of github.com:processone/ejabberd
mremond Jan 25, 2016
22696e8
Geenarte markdown that is acceptable by docs.ejabberd.org processor
prefiks Jan 25, 2016
28569d6
As default, attempt to add path to Elixir
mremond Jan 25, 2016
fc2d5da
Merge branch 'master' of github.com:processone/ejabberd
mremond Jan 25, 2016
bdeb4a7
Add a way to get all ejabberd_commands, not only those that was regis…
prefiks Jan 26, 2016
621dff7
Add header to generated markdown file
prefiks Jan 26, 2016
b2c6e39
Set set utf8mb4 charset on mysql connection
Jan 26, 2016
239b1c6
Always use lagger
prefiks Jan 26, 2016
d89bbba
Remove empty and unused module
lpil Jan 26, 2016
aaa84dc
Need extra line before ## in markdown
prefiks Jan 27, 2016
b20db3b
Initial version of migration script from Prosody to ejabberd
Jan 28, 2016
54dc2f5
Import privacy lists from Prosody
Jan 29, 2016
d3ee2a9
Add 'import_prosody' command
Jan 29, 2016
dc52ec9
Send presence with code 170 only in initial presence from MUC
prefiks Feb 1, 2016
fa55ac5
More strict checking for MUC initial presence
prefiks Feb 1, 2016
80fc34f
Fix presence-based delivery
Jan 19, 2016
59c471a
Merge pull request #937 from Iperity/fix-presence-based-delivery
cromain Feb 2, 2016
e8ba7bc
Use stringprep app name
mremond Feb 3, 2016
a457105
Run ejabberd test on Erlang R18
mremond Feb 3, 2016
9b83786
Switch a few version to hex.pm version
mremond Feb 3, 2016
ba11165
Syntax highlight file + comment on rebar_elixir_plugin
mremond Feb 3, 2016
bad50b8
Move database dependencies to new repository / modules
mremond Feb 3, 2016
99b5c57
Move to new iconv package
mremond Feb 3, 2016
b137ee3
Move to new dependencies for SIP and STUN
mremond Feb 3, 2016
0de222d
Convert code to use Fast YAML
mremond Feb 3, 2016
e83ae9e
Proper name for included applications
mremond Feb 3, 2016
9ae1371
Convert more dependencies to new repository / packages
mremond Feb 3, 2016
71ee0d5
Switch to fast_tls and update app names
mremond Feb 3, 2016
5539db3
Remove reference to p1_logger
mremond Feb 3, 2016
315fc94
Handle spaces in vsn attribute of app file when installing deps (#940)
badlop Feb 3, 2016
dfc29ea
Switch to Fast XML module
mremond Feb 3, 2016
89dda47
Convert tests to Fast XML
mremond Feb 3, 2016
e207d0a
Merge pull request #943 from processone/deps-cleanup
mremond Feb 4, 2016
942072c
Make hibernate timeouts configurable
Feb 4, 2016
30388fa
Allow to modify host when deleting account or changing password over web
cdroege Feb 4, 2016
268f0b3
add room_id_regexp option
hamano Jan 14, 2016
7435ee4
Rename option to regexp_room_id for consistency with other options (#…
badlop Feb 5, 2016
f44bf00
Update German translation
nikolauspolak Feb 6, 2016
a31f59e
XEP-0198: Fix session timeout corner case
weiss Feb 6, 2016
8098f7d
mod_mam: Don't let outcasts access MUC archive
weiss Feb 7, 2016
bf49c29
Omit redundant check for overcrowded MUC room
weiss Feb 7, 2016
0b1620a
Remove compile warnings
mremond Feb 8, 2016
ed30bd6
Preparing to release beta package on hex.pm
mremond Feb 8, 2016
3af055f
Link to Hex.pm
mremond Feb 8, 2016
6af9aa3
Add link to ProcessOne site
mremond Feb 8, 2016
2bfb619
Merge pull request #914 from weiss/mam-expose-jid
zinid Feb 8, 2016
ebd5ee3
Merge pull request #945 from nikolauspolak/master
badlop Feb 8, 2016
cf2f80b
Merge pull request #944 from cdroege/configureable_host-mod_register_web
badlop Feb 8, 2016
04a315e
Fix section links to the Guide in the WebAdmin
badlop Feb 8, 2016
10ed4a1
Add most status codes only to initial MUC presence
weiss Feb 8, 2016
02a519a
Mention new XEP support
badlop Feb 8, 2016
d36c351
Typo in markdown generator
prefiks Feb 9, 2016
30d171e
Start documenting arguments in mod_admin_extra commands
prefiks Feb 9, 2016
c0da9b4
Better presentation of result description in docs
prefiks Feb 9, 2016
5834763
Use muc_online_room record for pattern matching
Feb 9, 2016
2bca8d5
Remove remanants of pre-binary strings
prefiks Feb 9, 2016
4839ba5
XEP-0013: Flexible Offline Message Retrieval support
Feb 9, 2016
d5b3e6a
More documentation of arguments in mod_admin_extra
prefiks Feb 9, 2016
217b6da
Fix example value for rescode return type
prefiks Feb 9, 2016
1de085e
Prepare room JID in create_room command
badlop Feb 8, 2016
d6323a7
Add tests for XEP-0013
Feb 10, 2016
17be703
mod_mam: Send new preferences when they are set
weiss Feb 10, 2016
8e6adb4
Do not forget sending initial presence in XEP-0013 test
Feb 11, 2016
5680d4c
Get rid of calls to jlib.erl from tests
Feb 11, 2016
3908c97
Travis CI: Make sure Riak finds callback module
weiss Feb 11, 2016
041e886
mod_muc_room: Don't expose JIDs in anonymous rooms
weiss Feb 11, 2016
eaaab45
mod_muc_room: Let members see admin/owner JIDs
weiss Feb 11, 2016
4f7f66f
Update Portuguese (Brazil) translations
rodrigues Feb 11, 2016
06f2237
Merge pull request #951 from rodrigues/master
badlop Feb 12, 2016
c579313
Fix the color of links in tables in web admin
cdroege Feb 12, 2016
47a67c7
Allow to pass \n in argument to ejabberdctl
prefiks Feb 12, 2016
c9c59f0
Merge pull request #953 from cdroege/fix_css
badlop Feb 15, 2016
d40a091
Another fix for \n in ejabberdctl arguments
prefiks Feb 15, 2016
eece6e6
Fix format_result so get_room_options command works again after aa5caa3
badlop Feb 17, 2016
4b0860e
Make it possible to define 'sm_db_type' per virtual host
Feb 19, 2016
8f9c18e
Add Redis backend to the test suite
Feb 19, 2016
5b4aefb
Accept stream compression request after SASL
weiss Feb 19, 2016
9db9cbd
Merge pull request #961 from weiss/compression-after-sasl
alexeyshch Feb 19, 2016
b971449
mod_http_upload: Expand 'docroot' before using it
weiss Feb 20, 2016
44f581c
mod_http_upload: Also expand @HOST@ in 'docroot'
weiss Feb 20, 2016
576c10e
Make caps warning less confusing (#955)
Feb 23, 2016
2c856c7
Update translated files, as there wee many improvements
badlop Feb 24, 2016
a9de13c
Don't include empty line after java example
prefiks Feb 18, 2016
d9ec923
Elixir want {src_dirs, ["include"]} on top of a config
prefiks Feb 25, 2016
24617b5
Split long lines
prefiks Feb 25, 2016
217ba09
Add extra items to .gitignore
prefiks Jan 29, 2016
ebaf750
Fix for #935
f055 Feb 25, 2016
1c6d209
Fix host/serverhost usage (#902)
Feb 26, 2016
5652378
Implementation of pubsub#itemreply (EJAB-1347)(#928)
Feb 26, 2016
6b12617
Improve LDAP shared roster support (EJAB-1480)
Feb 26, 2016
6d8c723
mod_register_web: Choose the right error messages
weiss Feb 28, 2016
59fe967
Enable undefined_function_calls xref option
prefiks Feb 29, 2016
382c7c2
Do not call to deprected/undefined functions from mod_shared_roster_ldap
Feb 29, 2016
8c49d1e
Disable back undefined_function_calls xref check
prefiks Feb 29, 2016
eeac7f9
Update ejabberd version for hex.pm release
mremond Feb 29, 2016
6374ef4
New parse transform for SQL queries, use prepare/execute calls with P…
alexeyshch Feb 9, 2016
c58a4be
Support for run-time SQL queries selection depending on DBMS version
alexeyshch Feb 11, 2016
437e768
Better error handling in ejabberd_sql_pt
alexeyshch Feb 11, 2016
ba35c1e
Use 'any' to match any DBMS in sql_query
alexeyshch Feb 11, 2016
9925563
Updated some mod_offline SQL queries to the new API
alexeyshch Feb 12, 2016
7f3bffe
Allow balanced expressions inside @(...) in ejabberd_sql_pt
alexeyshch Feb 12, 2016
3d8219d
Update mod_roster and ejabberd_auth_odbc SQL queries to the new API
alexeyshch Feb 15, 2016
2d042f0
New parse transform for ?SQL_UPSERT and ?SQL_UPSERT_T
alexeyshch Feb 18, 2016
6d7ce02
Update mod_last SQL queries to the new API
alexeyshch Feb 18, 2016
d8fbe8a
Update more SQL queries
alexeyshch Feb 22, 2016
968576d
Update p1_pgsql tag
alexeyshch Feb 23, 2016
1f9fd25
Update more SQL queries
alexeyshch Feb 25, 2016
e21f25f
Update more SQL queries
alexeyshch Feb 26, 2016
9a04944
Raise an error when there are no fields to set in ?SQL_UPSERT
alexeyshch Feb 29, 2016
79853ad
Missed a few calls in previous commits
alexeyshch Mar 1, 2016
96b09c5
Use upcoming version of ejabberd with Elixir 1.2
mremond Mar 2, 2016
fee5873
Minor format cleanup
Mar 3, 2016
3ecd7e8
Use Elixir v1.2.3
Mar 3, 2016
e95cf42
Enable flexible offline on disco#info as well
Mar 3, 2016
10d6c33
Fix pubsub disco after host/serverhost cleanup
Mar 3, 2016
44978ce
ext_mod: switch to fast_xml and remove old p1_logger reference
Mar 3, 2016
9c3d57e
Mark get_queue_length obsolete, and use count_offline_messages (#970)
badlop Mar 4, 2016
304afd7
Compile ejabberd_config early to stop undefined behaviour warnings
prefiks Mar 4, 2016
6e14a47
Define opt_type required be ejabberd_config behaviour.
prefiks Mar 4, 2016
4013629
EJAB-1480: fix issue with retreiving user roster
sharewax Mar 4, 2016
8e6a301
Fixed type specifications for 'rebar doc'
Mar 7, 2016
83acced
fix syntax highlighting by keeping "~s" together
Mar 7, 2016
16c1b9a
Fix format_result also in xmlrpc, after aa5caa3 (#982)
badlop Mar 7, 2016
eb08902
Merge pull request #988 from tnull/edoc_fix
badlop Mar 7, 2016
6e40573
Merge pull request #989 from galambalazs/patch-1
badlop Mar 7, 2016
c065a2c
Update gl.po
suchatorg Mar 7, 2016
b6289d6
Update gl.po
suchatorg Mar 8, 2016
b5121a3
Experimental MIX (XEP-0369) support
Mar 8, 2016
ae4fa22
mod_http_upload: Add XEP-0363 v0.2 support
weiss Mar 8, 2016
1860801
Unregister hooks and iq handlers on terminate
Mar 9, 2016
e31799a
Define mod_opt_type/1 callback
Mar 9, 2016
842d523
Fix escaping of argument in iexlive and iexdebug
prefiks Mar 9, 2016
f4ee8a2
Add Elixir Logger Backend to bridge logs from lager
mremond Mar 9, 2016
9e6efaf
Use p1_time_compat util for generating timestamp
mremond Mar 9, 2016
035c63f
Fix call to lager_util:is_loggable/3
mremond Mar 9, 2016
92a0181
Lager to Elixir Logger bridge is now compliant with ejabberd loglevel…
mremond Mar 9, 2016
15ee721
Add tests for MIX
Mar 10, 2016
8b03c0a
Minimal auth_method ordering fix
Mar 10, 2016
1336c6c
Merge pull request #997 from tnull/fix_auth_method_order
mremond Mar 11, 2016
0d1edc4
Don't enable in-band registration by default
weiss Mar 11, 2016
9297782
Fix config fetch after host/serverhost cleanup
Mar 11, 2016
9ceeaf2
Provide guidance for issue reporting and pull requests on Github
mremond Mar 12, 2016
357e48f
Make it possible to get virtual host of a registered route
Mar 13, 2016
5045fb5
Define pubsub node configuration per route/host explicitly
Mar 13, 2016
50e5cdc
Add ODBC tests for MIX
Mar 13, 2016
5a4b781
Add ODBC backend for MIX
Mar 13, 2016
55c567f
Unregister route at the very end
Mar 13, 2016
91573a8
Don't store watchdog notifications in MAM archives
weiss Mar 13, 2016
b871fbb
Fix result type of "connected_users_info" command
weiss Mar 13, 2016
9440049
Update gl.po
suchatorg Mar 14, 2016
5351e82
Fix Addresses element which lacked others local destinations
badlop Mar 14, 2016
dcefb6b
Merge pull request #980 from sharewax/EJAB-1480
zinid Mar 14, 2016
7f25c3b
Update gl.po
suchatorg Mar 14, 2016
3fef1a4
Merge pull request #991 from suchatorg/patch-1
badlop Mar 14, 2016
68675ef
Apply cosmetic changes to GitHub templates
weiss Mar 14, 2016
058b3d9
Bare JID in 'from' of Roster Push (RFC 6121 section 2.1.6) in mod_adm…
Mar 15, 2016
5b5548b
Produce less verbose logs for tests on travis
prefiks Mar 15, 2016
367adc2
Better error reporting when running Elixir test suite
mremond Mar 15, 2016
3c2cd91
Merge branch 'master' of github.com:processone/ejabberd
mremond Mar 15, 2016
b40154f
Update OTP release to use and drop release 17.1
mremond Mar 16, 2016
74053b1
When building Elixir inside ejabberd, rely on version 1.1 for Erlang …
mremond Mar 16, 2016
c985a2b
Start ezlib only if required, as it's optional (#1006)
badlop Mar 16, 2016
efbaba5
Make auto generated resources shorter
prefiks Mar 16, 2016
34bc698
Merge pull request #1011 from oxoWrk/master
prefiks Mar 16, 2016
7b72247
Don't use jlib:jid_remove_resource
prefiks Mar 16, 2016
d9bb373
Merge pull request #926 from lpil/fix/remove-empty-mod
mremond Mar 16, 2016
ef02053
Fix issue #1015
prefiks Mar 17, 2016
f19a54e
Escape quoting node name for ejabberdctl ping
Mar 18, 2016
939bb24
Extend scope of ejabberdctl ping
Mar 18, 2016
2d103b4
support riak authentication
hamano Mar 18, 2016
cf9ef45
Merge pull request #1022 from hamano/riak_auth
zinid Mar 18, 2016
dc7b2c4
Fix indentation of mod_register in default configuration file
badlop Mar 19, 2016
0e30265
Comment on error failures in logs + indenting
mremond Mar 21, 2016
5b7dc0c
Merge branch 'master' of github.com:processone/ejabberd
mremond Mar 21, 2016
31c194a
Add simple Elixir unit test on jid:from_string
mremond Mar 21, 2016
c924cd4
Run basic Elixir unit tests
mremond Mar 21, 2016
c98df3c
Attempting to use other keyserver, as we see failure from Travis fetc…
mremond Mar 21, 2016
3441157
Use static key for mysql repo
prefiks Mar 21, 2016
ef04dd7
Add Coveralls support
mremond Mar 21, 2016
9547596
We do not have C code to cover, they are in dependencies.
mremond Mar 21, 2016
4be9cc1
Merge pull request #1029 from processone/coveralls
mremond Mar 21, 2016
0112135
Elixir test suite is already run with global CT run command
mremond Mar 21, 2016
107569a
New command delete_mnesia deletes all tables that can be exported
badlop Mar 21, 2016
e7ef65a
Improve ban_account command to work with other DBs than Mnesia (#977)
badlop Mar 21, 2016
f8cf1ae
Disable Riak test on Travis as they are too unpredictable on Travis
mremond Mar 21, 2016
57f7b34
Do not auto append IP suffix to usernames (#1008)
Mar 22, 2016
bdce555
Tell Travis not to fail if some tests are skipped
Mar 22, 2016
b90c376
Fix a typo in travis.yml
Mar 22, 2016
61e914a
Keep alive Riak connections by default
Mar 22, 2016
cb27a35
Fix is_connected/0 function
Mar 22, 2016
7066338
Enable Riak test suite on Travis-CI
mremond Mar 23, 2016
a3a33bd
Allow running test groups independently
mremond Mar 24, 2016
df4c551
Specify lacking nodename (thanks to hamano)(#1020)
Mar 24, 2016
914578a
Fix start via systemd (#978)
Mar 24, 2016
c7cf95b
Merge pull request #1035 from processone/modular-tests-run
mremond Mar 24, 2016
46568fb
Merge commit 'refs/pull/524/head' of github.com:processone/ejabberd i…
Mar 25, 2016
8e053e1
MojoAuth module
benlangfeld Apr 9, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
15 changes: 15 additions & 0 deletions .github/ISSUE_TEMPLATE
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
> What version of ejabberd are you using?



> What operating system (version) are you using?



> How did you install ejabberd (source, package, distribution)?



> What did not work as expected? Are there error messages in the log? What
> was the unexpected behavior? What was the expected result?

20 changes: 20 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
We are open to contributions for ejabberd, as GitHub pull requests (PR).
Here are a few points to consider before submitting your PR. (You can
remove the whole text after reading.)

1. Does this PR address an issue? Please reference it in the PR
description.

2. Have you properly described the proposed change?

3. Please make sure the change is atomic and does only touch the needed
modules. If you have other changes/fixes to provide, please submit
them as separate PRs.

4. If your change or new feature involves storage backends, did you make
sure your change works with all backends?

5. Do you provide tests? How can we check the behavior of the code?

6. Did you consider documentation changes in the
processone/docs.ejabberd.im repository?
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,10 @@ XmppAddr.hrl
/vars.config
/dialyzer/
/test/*.beam
/test/*.ctc
/logs/
/priv/sql
/rel/ejabberd
/_build
/mnesiadb
/.rebar
44 changes: 39 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,72 @@
language: erlang

otp_release:
- 17.4
- R16B03
- 17.5
- 18.2.1

services:
- riak
- redis-server

before_install:
#
# We need MySQL 5.6 or newer in order to get support for FULLTEXT indexes
# with InnoDB. As soon as Travis ships that version, the following lines
# (except for the "apt-get update" call) can go away.
#
# See: https://github.com/travis-ci/travis-ci/issues/1986
#
- sudo sed -i -e s/table_cache/table_open_cache/ -e /log_slow_queries/d /etc/mysql/my.cnf
- sudo apt-key adv --import .travis/mysql_repo_key.asc
- sudo add-apt-repository 'deb http://repo.mysql.com/apt/ubuntu/ precise mysql-5.6'
- sudo apt-get -qq update
- sudo apt-get -qq -o Dpkg::Options::=--force-confold install mysql-server-5.6
# /END MYSQL 5.6
- pip install --user coveralls-merge

install:
- sudo apt-get -qq install libexpat1-dev libyaml-dev libpam0g-dev libsqlite3-dev

before_script:
# Ulimit: See Travis-CI issue report: https://github.com/travis-ci/travis-ci/issues/3328
- sudo sh -c 'ulimit -n 4096'
- sudo sh -c 'echo "ulimit -n 4096" > /etc/default/riak'
- mkdir "$PWD/ebin"
- echo "[{riak_kv, [{add_paths, [\"$PWD/ebin/\"]}]}]." > advanced.config
- sudo mv advanced.config /etc/riak/advanced.config
- sudo service riak restart
- mysql -u root -e "CREATE USER 'ejabberd_test'@'localhost' IDENTIFIED BY 'ejabberd_test';"
- mysql -u root -e "CREATE DATABASE ejabberd_test;"
- mysql -u root -e "GRANT ALL ON ejabberd_test.* TO 'ejabberd_test'@'localhost';"
- psql -U postgres -c "CREATE USER ejabberd_test WITH PASSWORD 'ejabberd_test';"
- psql -U postgres -c "CREATE DATABASE ejabberd_test;"
- psql -U postgres -c "GRANT ALL PRIVILEGES ON DATABASE ejabberd_test TO ejabberd_test;"
- sudo /usr/sbin/riak-admin wait-for-service riak_kv 'riak@127.0.0.1'
- sudo /usr/sbin/riak-admin test
# - tail -n 100000 /etc/riak/*

script:
- ./autogen.sh
- ./configure --enable-all --disable-odbc --disable-elixir
- ./configure --prefix=/tmp/ejabberd --enable-all --disable-odbc
- make
- make install
- make xref
- ERL_LIBS=$PWD make test
- grep -q 'TEST COMPLETE, \([[:digit:]]*\) ok, .* of \1 ' logs/raw.log
- sed -i -e 's/ct:pal/ct:log/' test/suite.erl
- ln -sf ../sql priv/
- escript ./rebar skip_deps=true ct -v
#- grep -q 'TEST COMPLETE, \([[:digit:]]*\) ok, .* of \1 ' logs/raw.log
- grep -q 'TEST COMPLETE, \([[:digit:]]*\) ok, 0 failed' logs/raw.log

after_script:
- find logs -name suite.log -exec cat '{}' ';'

after_failure:
# Try checking Riak database logs
- tail -n 100000 /var/log/riak/*.log
- find logs -name ejabberd.log -exec cat '{}' ';'

after_success:
- coveralls-merge erlang.json

notifications:
email: false
96 changes: 96 additions & 0 deletions .travis/mysql_repo_key.asc
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.9 (SunOS)

mQGiBD4+owwRBAC14G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PZbPDsDD9MZ1Z
aSafanFvwFG6Llx9xkU7tzq+vKLoWkm4u5xf3vn55VjnSd1aQ9eQnUcXiL4cnBGo
TbOWI39EcyzgslzBdC++MPjcQTcA7p6JUVsP6oAB3FQWg54tuUo0Ec8bsM8b3Ev4
2LmuQT5NdKHGwHsXTPtl0klk4bQk4OajHsiy1BMahpT27jWjJlMiJc+IWJ0mghkK
Ht926s/ymfdf5HkdQ1cyvsz5tryVI3Fx78XeSYfQvuuwqp2H139pXGEkg0n6KdUO
etdZWhe70YGNPw1yjWJT1IhUBBgRAgAMBQJOdz3tBQkT+wG4ABIHZUdQRwABAQkQ
jHGNO1By4fUUmwCbBYr2+bBEn/L2BOcnw9Z/QFWuhRMAoKVgCFm5fadQ3Afi+UQl
AcOphrnJ
=443I
-----END PGP PUBLIC KEY BLOCK-----
124 changes: 67 additions & 57 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ BINDIR = $(DESTDIR)@bindir@
# /sbin/
SBINDIR = $(DESTDIR)@sbindir@

# /lib/
LIBDIR = $(DESTDIR)@libdir@

# /lib/ejabberd/
EJABBERDDIR = $(DESTDIR)@libdir@/ejabberd

Expand Down Expand Up @@ -101,21 +104,73 @@ xref: all
translations:
contrib/extract_translations/prepare-translation.sh -updateall

doc:
echo making $$target in doc; \
(cd doc && $(MAKE) $$target) || exit 1

edoc:
$(ERL) -noinput +B -eval \
'case edoc:application(ejabberd, ".", []) of ok -> halt(0); error -> halt(1) end.'

spec:
$(ERL) -noinput +B -pa ebin -pa deps/*/ebin -eval \
'case xml_gen:compile("tools/xmpp_codec.spec") of ok -> halt(0); _ -> halt(1) end.'
'case fxml_gen:compile("tools/xmpp_codec.spec") of ok -> halt(0); _ -> halt(1) end.'

JOIN_PATHS=$(if $(wordlist 2,1000,$(1)),$(firstword $(1))/$(call JOIN_PATHS,$(wordlist 2,1000,$(1))),$(1))

VERSIONED_DEP=$(if $(DEP_$(1)_VERSION),$(DEP_$(1)_VERSION),$(1))

ELIXIR_TO_DEST=$(LIBDIR) $(call VERSIONED_DEP,$(word 2,$(1))) $(wordlist 5,1000,$(1))
DEPS_TO_DEST=$(LIBDIR) $(call VERSIONED_DEP,$(word 2,$(1))) $(wordlist 3,1000,$(1))
MAIN_TO_DEST=$(LIBDIR) $(call VERSIONED_DEP,ejabberd) $(1)
TO_DEST_SINGLE=$(if $(subst XdepsX,,X$(word 1,$(1))X),$(call MAIN_TO_DEST,$(1)),$(if $(subst XlibX,,X$(word 3,$(1))X),$(call DEPS_TO_DEST,$(1)),$(call ELIXIR_TO_DEST,$(1))))
TO_DEST=$(foreach path,$(1),$(call JOIN_PATHS,$(call TO_DEST_SINGLE,$(subst /, ,$(path)))))

FILTER_DIRS=$(foreach path,$(1),$(if $(wildcard $(path)/*),,$(path)))
FILES_WILDCARD=$(call FILTER_DIRS,$(foreach w,$(1),$(wildcard $(w))))

ifeq ($(MAKECMDGOALS),copy-files-sub)

DEPS:=$(sort $(shell $(REBAR) list-deps|$(SED) -e '/^=/d;s/ .*//'))

DEPS_FILES=$(call FILES_WILDCARD,$(foreach DEP,$(DEPS),deps/$(DEP)/ebin/*.beam deps/$(DEP)/ebin/*.app deps/$(DEP)/priv/* deps/$(DEP)/priv/lib/* deps/$(DEP)/priv/bin/* deps/$(DEP)/include/*.hrl deps/$(DEP)/lib/*/ebin/*.beam deps/$(DEP)/lib/*/ebin/*.app))
DEPS_FILES_FILTERED=$(filter-out %/epam deps/elixir/ebin/elixir.app,$(DEPS_FILES))
DEPS_DIRS=$(sort deps/ $(foreach DEP,$(DEPS),deps/$(DEP)/) $(dir $(DEPS_FILES)))

MAIN_FILES=$(filter-out %/configure.beam,$(call FILES_WILDCARD,ebin/*.beam ebin/*.app priv/msgs/*.msg priv/lib/* include/*.hrl))
MAIN_DIRS=$(sort $(dir $(MAIN_FILES)) priv/bin priv/sql)

define DEP_VERSION_template
DEP_$(1)_VERSION:=$(shell $(SED) -e '/vsn/!d;s/.*, *"/$(1)-/;s/".*//' $(2) 2>/dev/null)
endef

$(foreach DEP,$(DEPS),$(eval $(call DEP_VERSION_template,$(DEP),deps/$(DEP)/ebin/$(DEP).app)))
$(eval $(call DEP_VERSION_template,ejabberd,ebin/ejabberd.app))

define COPY_template
$(call TO_DEST,$(1)): $(1) $(call TO_DEST,$(dir $(1))) ; $$(INSTALL) -m 644 $(1) $(call TO_DEST,$(1))
endef

$(foreach file,$(DEPS_FILES_FILTERED) $(MAIN_FILES),$(eval $(call COPY_template,$(file))))

DLLs := $(wildcard deps/*/priv/*.so) $(wildcard deps/*/priv/lib/*.so)
$(sort $(call TO_DEST,$(MAIN_DIRS) $(DEPS_DIRS))):
$(INSTALL) -d $@

install: all
$(call TO_DEST,deps/p1_pam/priv/bin/epam): $(LIBDIR)/%: deps/p1_pam/priv/bin/epam $(call TO_DEST,deps/p1_pam/priv/bin/)
$(INSTALL) -m 750 $(O_USER) $< $@

$(call TO_DEST,priv/sql/lite.sql): sql/lite.sql $(call TO_DEST,priv/sql)
$(INSTALL) -m 644 $< $@

$(call TO_DEST,priv/bin/captcha.sh): tools/captcha.sh $(call TO_DEST,priv/bin)
$(INSTALL) -m 750 $(O_USER) $< $@

copy-files-sub2: $(call TO_DEST,$(DEPS_FILES) $(MAIN_FILES) priv/bin/captcha.sh priv/sql/lite.sql)

endif

copy-files:
$(MAKE) copy-files-sub

copy-files-sub: copy-files-sub2

install: all copy-files
#
# Configuration files
$(INSTALL) -d -m 750 $(G_USER) $(ETCDIR)
Expand All @@ -141,54 +196,16 @@ install: all
$(INSTALL) -m 550 $(G_USER) ejabberdctl.example $(SBINDIR)/ejabberdctl
# Elixir binaries
[ -d $(BINDIR) ] || $(INSTALL) -d -m 755 $(BINDIR)
-[ -f deps/elixir/bin/iex ] && $(INSTALL) -m 550 $(G_USER) deps/elixir/bin/iex $(BINDIR)/iex
-[ -f deps/elixir/bin/elixir ] && $(INSTALL) -m 550 $(G_USER) deps/elixir/bin/elixir $(BINDIR)/elixir
-[ -f deps/elixir/bin/mix ] && $(INSTALL) -m 550 $(G_USER) deps/elixir/bin/mix $(BINDIR)/mix
[ -f deps/elixir/bin/iex ] && $(INSTALL) -m 550 $(G_USER) deps/elixir/bin/iex $(BINDIR)/iex || true
[ -f deps/elixir/bin/elixir ] && $(INSTALL) -m 550 $(G_USER) deps/elixir/bin/elixir $(BINDIR)/elixir || true
[ -f deps/elixir/bin/mix ] && $(INSTALL) -m 550 $(G_USER) deps/elixir/bin/mix $(BINDIR)/mix || true
#
# Init script
$(SED) -e "s*@ctlscriptpath@*$(SBINDIR)*" \
-e "s*@installuser@*$(INIT_USER)*" ejabberd.init.template \
> ejabberd.init
chmod 755 ejabberd.init
#
# Binary Erlang files
$(INSTALL) -d $(BEAMDIR)
$(INSTALL) -m 644 ebin/*.app $(BEAMDIR)
$(INSTALL) -m 644 ebin/*.beam $(BEAMDIR)
$(INSTALL) -m 644 deps/*/ebin/*.app $(BEAMDIR)
$(INSTALL) -m 644 deps/*/ebin/*.beam $(BEAMDIR)
# Install Elixir and Elixir dependancies
-$(INSTALL) -m 644 deps/*/lib/*/ebin/*.app $(BEAMDIR)
-$(INSTALL) -m 644 deps/*/lib/*/ebin/*.beam $(BEAMDIR)
rm -f $(BEAMDIR)/configure.beam
#
# ejabberd header files
$(INSTALL) -d $(INCLUDEDIR)
$(INSTALL) -m 644 include/*.hrl $(INCLUDEDIR)
$(INSTALL) -m 644 deps/*/include/*.hrl $(INCLUDEDIR)
#
# Binary C programs
$(INSTALL) -d $(PBINDIR)
$(INSTALL) -m 750 $(O_USER) tools/captcha.sh $(PBINDIR)
$(INSTALL) -m 750 $(O_USER) tools/joincluster $(PBINDIR)
$(INSTALL) -m 750 $(O_USER) tools/leavecluster $(PBINDIR)
-[ -f deps/p1_pam/priv/bin/epam ] \
&& $(INSTALL) -m 750 $(O_USER) deps/p1_pam/priv/bin/epam $(PBINDIR)
#
# Binary system libraries
$(INSTALL) -d $(SODIR)
$(INSTALL) -m 644 $(DLLs) $(SODIR)
-[ -f $(SODIR)/jiffy.so ] && (cd $(PRIVDIR); ln -s lib/jiffy.so; true)
-[ -f $(SODIR)/sqlite3_drv.so ] && (cd $(PRIVDIR); ln -s lib/sqlite3_drv.so; true)
#
# Translated strings
$(INSTALL) -d $(MSGSDIR)
$(INSTALL) -m 644 priv/msgs/*.msg $(MSGSDIR)
#
# Copy lite.sql
-[ -d deps/sqlite3 ] && $(INSTALL) -d $(SQLDIR)
-[ -d deps/sqlite3 ] && $(INSTALL) -m 644 sql/lite.sql $(SQLDIR)
#
# Spool directory
$(INSTALL) -d -m 750 $(O_USER) $(SPOOLDIR)
$(CHOWN_COMMAND) -R @INSTALLUSER@ $(SPOOLDIR) >$(CHOWN_OUTPUT)
Expand All @@ -207,16 +224,9 @@ install: all
#
# Documentation
$(INSTALL) -d $(DOCDIR)
[ -f doc/dev.html ] \
&& $(INSTALL) -m 644 doc/dev.html $(DOCDIR) \
|| echo "No doc/dev.html was built"
[ -f doc/guide.html ] \
&& $(INSTALL) -m 644 doc/guide.html $(DOCDIR) \
|| echo "No doc/guide.html was built"
[ -f doc/guide.pdf ] \
&& $(INSTALL) -m 644 doc/guide.pdf $(DOCDIR) \
|| echo "No doc/guide.pdf was built"
$(INSTALL) -m 644 doc/*.png $(DOCDIR)
|| echo "Documentation not included in sources"
$(INSTALL) -m 644 COPYING $(DOCDIR)

uninstall: uninstall-binary
Expand Down Expand Up @@ -326,6 +336,6 @@ test:
quicktest:
$(REBAR) skip_deps=true ct suites=elixir

.PHONY: src doc edoc dialyzer Makefile TAGS clean clean-rel distclean rel \
.PHONY: src edoc dialyzer Makefile TAGS clean clean-rel distclean rel \
install uninstall uninstall-binary uninstall-all translations deps test spec \
quicktest erlang_plt deps_plt ejabberd_plt
Loading