2014-05-05 22:42:15 +02:00
|
|
|
language: erlang
|
|
|
|
|
|
|
|
otp_release:
|
2015-08-13 13:06:05 +02:00
|
|
|
- 17.1
|
|
|
|
- 17.5
|
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:
|
2015-07-03 01:21:22 +02:00
|
|
|
#
|
|
|
|
# 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 --keyserver pgp.mit.edu --recv-keys 5072E1F5
|
|
|
|
- sudo add-apt-repository 'deb http://repo.mysql.com/apt/ubuntu/ precise mysql-5.6'
|
2014-05-05 22:42:15 +02:00
|
|
|
- sudo apt-get -qq update
|
2015-07-03 01:21:22 +02:00
|
|
|
- sudo apt-get -qq -o Dpkg::Options::=--force-confold install mysql-server-5.6
|
2014-05-05 22:42:15 +02:00
|
|
|
|
|
|
|
install:
|
2015-03-16 19:53:19 +01:00
|
|
|
- sudo apt-get -qq install libexpat1-dev libyaml-dev libpam0g-dev libsqlite3-dev
|
2014-05-05 22:42:15 +02:00
|
|
|
|
|
|
|
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-10-19 14:23:37 +02:00
|
|
|
- ./configure --prefix=/tmp/ejabberd --enable-all --disable-odbc --disable-elixir
|
|
|
|
- make
|
|
|
|
- make install
|
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
|