24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-07-14 23:44:18 +02:00

Disable Riak test on Travis as they are too unpredictable on Travis

For now, we are running them on local Jenkins
This commit is contained in:
Mickael Remond 2016-03-21 19:43:59 +01:00
parent e7ef65a22d
commit f8cf1aef91

View File

@ -31,13 +31,19 @@ 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
# MR: Temporarily stopping Riak to disable tests as Riak is too unreliable on Travis-ci
#- sudo service riak restart
- sudo service riak stop
- 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;"
# MR: Temporarily stopping Riak to disable tests as Riak is too unreliable on Travis-ci
#- 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
@ -54,6 +60,8 @@ 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: