Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
86 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
sudo: required | ||
language: java | ||
before_install: .travis/before_install.sh | ||
jdk: | ||
- oraclejdk8 | ||
- oraclejdk7 | ||
- openjdk7 | ||
env: | ||
- MARIA_VERSION=5.5 MAX_ALLOWED_PACKET=1M | ||
- MARIA_VERSION=5.5 MAX_ALLOWED_PACKET=16M | ||
- MARIA_VERSION=5.5 MAX_ALLOWED_PACKET=160M | ||
- MARIA_VERSION=10.0 MAX_ALLOWED_PACKET=1M | ||
- MARIA_VERSION=10.0 MAX_ALLOWED_PACKET=16M | ||
- MARIA_VERSION=10.0 MAX_ALLOWED_PACKET=160M | ||
- MARIA_VERSION=10.1 MAX_ALLOWED_PACKET=1M | ||
- MARIA_VERSION=10.1 MAX_ALLOWED_PACKET=16M | ||
- MARIA_VERSION=10.1 MAX_ALLOWED_PACKET=160M | ||
- MYSQL_VERSION=travis MAX_ALLOWED_PACKET=1M | ||
- MYSQL_VERSION=travis MAX_ALLOWED_PACKET=16M | ||
- MYSQL_VERSION=travis MAX_ALLOWED_PACKET=160M | ||
- MYSQL_VERSION=5.6 MAX_ALLOWED_PACKET=1M | ||
- MYSQL_VERSION=5.6 MAX_ALLOWED_PACKET=16M | ||
- MYSQL_VERSION=5.6 MAX_ALLOWED_PACKET=160M |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
set -e | ||
|
||
export MYSQ_GPG_KEY=5072E1F5 | ||
|
||
remove_mysql(){ | ||
sudo service mysql stop | ||
sudo apt-get remove --purge mysql-server mysql-client mysql-common | ||
sudo apt-get autoremove | ||
sudo apt-get autoclean | ||
sudo rm -rf /etc/mysql||true | ||
sudo rm -rf /var/lib/mysql||true | ||
} | ||
|
||
if [ "x$MYSQL_VERSION" == "xtravis" ] | ||
then | ||
: | ||
elif [ "x$MYSQL_VERSION" != "x" ] | ||
then | ||
|
||
remove_mysql | ||
|
||
sudo tee /etc/apt/sources.list.d/mysql.list << END | ||
deb http://repo.mysql.com/apt/debian/ wheezy mysql-$MYSQL_VERSION | ||
deb-src http://repo.mysql.com/apt/debian/ wheezy mysql-$MYSQL_VERSION | ||
END | ||
|
||
sudo apt-key adv --keyserver pool.sks-keyservers.net --recv-keys $MYSQ_GPG_KEY | ||
|
||
sudo apt-get update | ||
sudo apt-get install mysql-server | ||
|
||
dpkg -l|grep ^ii|grep mysql-server|grep ${MYSQL_VERSION/-dmr/} | ||
|
||
else | ||
remove_mysql | ||
|
||
sudo apt-get install python-software-properties | ||
|
||
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db | ||
sudo add-apt-repository "deb http://ftp.igh.cnrs.fr/pub/mariadb/repo/${MARIA_VERSION}/debian wheezy main" | ||
|
||
sudo apt-get update | ||
|
||
sudo apt-get install mariadb-server | ||
fi | ||
|
||
sudo tee /etc/mysql/conf.d/map.cnf << END | ||
[mysqld] | ||
max_allowed_packet=$MAX_ALLOWED_PACKET | ||
END | ||
|
||
sudo service mysql restart | ||
|
||
|
||
cat /etc/mysql/my.cnf | ||
|
||
mysql -u root -e "create database test" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters