-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;"
-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;"
-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;"
# Stretch does not have MySQL 5.5/5.6/5.7 so cannot test this without further engineering
#test mysql upgrade:
# stage: test
# image: debian:stretch
# script:
# - apt-get update
# - apt-get install -y mysql-server
# - /etc/init.d/mysql restart
# - mysql --version
# - echo 'SHOW DATABASES;' | mysql
# - cd ${WORKING_DIR}; apt-get install -y ./*.deb
# - /etc/init.d/mysql restart
# - mariadb --version
# - echo 'SHOW DATABASES;' | mariadb
.test_features:&test_features
stage:test
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
-mariadb --skip-column-names -e "select engine, support, transactions, savepoints from information_schema.engines order by engine" | sort
-mariadb --skip-column-names -e "select plugin_name, plugin_status, plugin_type, plugin_library, plugin_license from information_schema.all_plugins order by plugin_name, plugin_library"