mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
58 lines
1.9 KiB
YAML
58 lines
1.9 KiB
YAML
language: erlang
|
|
|
|
otp_release:
|
|
- 17.1
|
|
- 17.5
|
|
- 18.0
|
|
|
|
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 --keyserver pgp.mit.edu --recv-keys 5072E1F5
|
|
- 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
|
|
|
|
install:
|
|
- sudo apt-get -qq install libexpat1-dev libyaml-dev libpam0g-dev libsqlite3-dev
|
|
|
|
before_script:
|
|
- 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;"
|
|
|
|
script:
|
|
- ./autogen.sh
|
|
- ./configure --prefix=/tmp/ejabberd --enable-all --disable-odbc --disable-elixir
|
|
- make
|
|
- make install
|
|
- make xref
|
|
- make test
|
|
- grep -q 'TEST COMPLETE, \([[:digit:]]*\) ok, .* of \1 ' logs/raw.log
|
|
|
|
after_script:
|
|
- find logs -name suite.log -exec cat '{}' ';'
|
|
|
|
after_failure:
|
|
- find logs -name ejabberd.log -exec cat '{}' ';'
|
|
|
|
notifications:
|
|
email: false
|