-mariadb -e "create database test; use test; create table t(a int primary key) engine=innodb; insert into t values (1); select * from t; drop table t; drop database test;"
variables:
GIT_STRATEGY:none
upgrade on stretch:
stage:upgrades in Debian stable
dependencies:
-build package
image:debian:stable
artifacts:
when:always
name:"$CI_BUILD_NAME"
paths:
-${WORKING_DIR}/debug
script:
-cd ${WORKING_DIR}# Don't repeat this step, it's just cd ./debian/output
-apt-get update
-apt-get install -y 'default-mysql*' 'mariadb-*' 'libmariadbd*' 'libmariadbclient*'# Install almost everything curently in Debian Stretch
-mariadb --skip-column-names -e "select @@version, @@version_comment"# Show version
-mariadb -e "create database test; use test; create table t(a int primary key) engine=innodb; insert into t values (1); select * from t; drop table t; drop database test;"
-echo 'SHOW DATABASES;' | mariadb# List databases
-mariadb -e "create database test; use test; create table t(a int primary key) engine=innodb; insert into t values (1); select * from t; drop table t; drop database test;"# Test InnoDB works
variables:
variables:
GIT_STRATEGY:none
GIT_STRATEGY:none
...
@@ -123,16 +93,19 @@ test basic features:
...
@@ -123,16 +93,19 @@ test basic features:
-${WORKING_DIR}/debug
-${WORKING_DIR}/debug
script:
script:
-cd ${WORKING_DIR}# Don't repeat this step, it's just cd ./debian/output
-cd ${WORKING_DIR}# Don't repeat this step, it's just cd ./debian/output
-mariadb --skip-column-names -e "select @@version, @@version_comment"# Show version
-echo 'SHOW DATABASES;' | mariadb# List databases before upgrade are still there
-mariadb -e "create database test; use test; create table t(a int primary key) engine=innodb; insert into t values (1); select * from t; drop table t; drop database test;"# Test InnoDB works
variables:
GIT_STRATEGY:none
mariadb-10.0 to mariadb-10.1 upgrade:
stage:upgrade from Jessie
dependencies:
dependencies:
-build package
-build package
image:debian:jessie
image:debian:jessie
...
@@ -209,19 +219,70 @@ mysql-5.5 to mariadb upgrade:
...
@@ -209,19 +219,70 @@ mysql-5.5 to mariadb upgrade:
paths:
paths:
-${WORKING_DIR}/debug
-${WORKING_DIR}/debug
script:
script:
-cd ${WORKING_DIR}# Don't repeat this step, it's just cd ./debian/output
-apt-get update
# Install almost everything currently in Debian Jessie
-apt-get install -y 'mariadb-*' 'libmariadb*'
# Verify installation of MariaDB from Jessie
-dpkg -l | grep -iE 'maria|mysql|galera' || true# List installed
-service mysql status || true# Always proceed even if init failed
-mariadb --skip-column-names -e "select @@version, @@version_comment"# Show version
-echo 'SHOW DATABASES;' | mariadb# List databases before upgrade are still there
-mariadb -e "create database test; use test; create table t(a int primary key) engine=innodb; insert into t values (1); select * from t; drop table t; drop database test;"# Test InnoDB works
variables:
GIT_STRATEGY:none
mysql-5.5 to mariadb-10.1 upgrade:
stage:upgrade from Jessie
dependencies:
-build package
image:debian:jessie
artifacts:
when:always
name:"$CI_BUILD_NAME"
paths:
-${WORKING_DIR}/debug
script:
-cd ${WORKING_DIR}# Don't repeat this step, it's just cd ./debian/output
-apt-get update
-apt-get update
-apt-get install -y mysql-server
-apt-get install -y mysql-server
-/etc/init.d/mysql restart
# Verify installation of MySQL from Jessie
-mysql --version
-dpkg -l | grep -iE 'maria|mysql|galera' || true# List installed
-service mysql status || true# Always proceed even if init failed
-mariadb --skip-column-names -e "select @@version, @@version_comment"# Show version
-mariadb --version
-echo 'SHOW DATABASES;' | mariadb# List databases before upgrade are still there
-echo 'SHOW DATABASES;' | mariadb
-mariadb -e "create database test; use test; create table t(a int primary key) engine=innodb; insert into t values (1); select * from t; drop table t; drop database test;"# Test InnoDB works