2014-05-05 22:42:15 +02:00
|
|
|
language: erlang
|
|
|
|
|
|
|
|
otp_release:
|
2015-03-23 14:54:29 +01:00
|
|
|
- 17.4
|
2014-07-10 12:45:54 +02:00
|
|
|
- R16B03
|
2014-05-05 22:42:15 +02:00
|
|
|
|
2014-07-15 20:42:12 +02:00
|
|
|
services:
|
|
|
|
- riak
|
|
|
|
|
2014-05-05 22:42:15 +02:00
|
|
|
before_install:
|
|
|
|
- sudo apt-get -qq update
|
|
|
|
|
|
|
|
install:
|
|
|
|
- sudo apt-get -qq install libexpat1-dev libyaml-dev libpam0g-dev
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- 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;"
|
|
|
|
|
|
|
|
script:
|
|
|
|
- ./autogen.sh
|
2015-02-10 18:22:54 +01:00
|
|
|
- ./configure --enable-all --disable-odbc --disable-elixir
|
2014-10-30 18:26:42 +01:00
|
|
|
- make xref
|
2014-07-15 20:42:12 +02:00
|
|
|
- ERL_LIBS=$PWD make test
|
|
|
|
- grep -q 'TEST COMPLETE, \([[:digit:]]*\) ok, .* of \1 ' logs/raw.log
|
2014-05-05 22:42:15 +02:00
|
|
|
|
|
|
|
after_script:
|
|
|
|
- find logs -name suite.log -exec cat '{}' ';'
|
|
|
|
|
|
|
|
after_failure:
|
|
|
|
- find logs -name ejabberd.log -exec cat '{}' ';'
|
|
|
|
|
|
|
|
notifications:
|
|
|
|
email: false
|