Skip to content

Commit

Permalink
Merge pull request #377 from jmtcsngr/mysql_5_7_13
Browse files Browse the repository at this point in the history
Mysql 5 7 13
  • Loading branch information
mgcam authored Nov 24, 2016
2 parents 6f0f097 + 74741fd commit 6350b64
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ env:
- TRAVIS_NODE_VERSION="4.5.0"

before_install:
- ./.travis/before_install_mysql57.sh
- ./.travis/before_install.sh
install:
- ./.travis/install.sh
Expand Down
22 changes: 16 additions & 6 deletions .travis/before_install_mysql57.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,30 @@ sudo apt-get autoclean
sudo rm -rf /var/lib/mysql
sudo rm -rf /var/log/mysql

# Specify which version we want
echo "deb http://repo.mysql.com/apt/ubuntu/ precise mysql-5.7" | sudo tee /etc/apt/sources.list.d/mysql.list
sudo -E apt-get update -q
sudo -E apt-get -q -y install mysql-server libmysqlclient-dev libdbd-mysql-perl
# Get packages from oracle
sudo -E apt-get install libaio1 apparmor
wget http://downloads.mysql.com/archives/get/file/mysql-common_5.7.13-1ubuntu12.04_amd64.deb
wget http://downloads.mysql.com/archives/get/file/libmysqlclient20_5.7.13-1ubuntu12.04_amd64.deb
wget http://downloads.mysql.com/archives/get/file/mysql-community-client_5.7.13-1ubuntu12.04_amd64.deb
wget http://downloads.mysql.com/archives/get/file/mysql-client_5.7.13-1ubuntu12.04_amd64.deb
wget http://downloads.mysql.com/archives/get/file/mysql-community-server_5.7.13-1ubuntu12.04_amd64.deb
wget http://downloads.mysql.com/archives/get/file/mysql-server_5.7.13-1ubuntu12.04_amd64.deb
sudo debconf-set-selections <<< "mysql-server mysql-server/root_password password \"''\""
sudo debconf-set-selections <<< "mysql-server mysql-server/root_password_again password \"''\""
sudo dpkg-preconfigure mysql-community-server_5.7.13-1ubuntu12.04_amd64.deb
sudo dpkg -i mysql-{common,community-client,client,community-server,server}_*.deb
sudo dpkg -i libmysqlclient20_5.7.13-1ubuntu12.04_amd64.deb
sudo -E apt-get -q -y install libmysqlclient-dev libdbd-mysql-perl
sudo /etc/init.d/mysql stop
sleep 5
# Start the server without password
sudo mysqld --skip-grant-tables --explicit_defaults_for_timestamp=false --sql-mode="STRICT_TRANS_TABLES" &
sudo mysqld --user=root --skip-grant-tables --explicit_defaults_for_timestamp=false --sql-mode="STRICT_TRANS_TABLES" &
#Give some time for server to start
sleep 10
# print versions
mysql --version
mysql -e "SELECT @@GLOBAL.sql_mode; SELECT @@SESSION.sql_mode; SHOW GLOBAL VARIABLES LIKE '%version%'; show variables like '%time%';" -uroot
mysql -h localhost -e "SELECT @@GLOBAL.sql_mode; SELECT @@SESSION.sql_mode; SHOW GLOBAL VARIABLES LIKE '%version%'; show variables like '%time%';" -uroot
2 changes: 2 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
LIST OF CHANGES FOR NPG-QC PACKAGE

- back to testing with mysql 5.7.13 in travis

release 62.5
- a very concise replacement for NPG_QC pages
- no templates rna_seqc results - we should not try rendering
Expand Down

0 comments on commit 6350b64

Please sign in to comment.